Indigo 0.95 |
indigo. core. platform
This is an internal module of Indigo. You can use it if you like, but be aware that it may be changed or even be removed in future versions. Provides simple access to Platform specialties. Compile with version “Indigo_WithoutStdlib” to remove its entire contents. Summary
PlatformThis struct simplifies handling the different platforms supported by the different D compilers. The platform specific D module (like std.c.linux.linux) is automatically included into this struct. The following example shows how to retrieve file attributes using Platform under Linux/Unix: Platform.struct_stat st; If you want to test for a Unix system, you should always do it the following way. // At the beginning of your module. |