You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
Unless I've missed, ion currently has no conditional compilation. Tying that with some built-in consts for OS and such would be great. This requires falling out to c whenever this is needed, which is one place in the current ion compiler.
An implementation for this might possibly be tied up with some implementation of macros, if any.
(As an aside, I'm mostly against general compile time code execution, because I'm afraid of people getting carried away with it. But it's technically a potential solution for these sorts of things, too.)
The text was updated successfully, but these errors were encountered:
tjpalmer
changed the title
Conditional compilation
Ion conditional compilation
Jun 9, 2018
Unless I've missed, ion currently has no conditional compilation. Tying that with some built-in consts for OS and such would be great
It does exactly that already: if you append e.g. _win32 to filename, during module compilation file will be compiled only if you compiling for windows.
The name is kinda a misnomer as it applies to both 32 and 64 bit versions of windows. There are also suffixes for choosing architecture. Look in system_packages/builtin/
Unless I've missed, ion currently has no conditional compilation. Tying that with some built-in consts for OS and such would be great. This requires falling out to c whenever this is needed, which is one place in the current ion compiler.
An implementation for this might possibly be tied up with some implementation of macros, if any.
(As an aside, I'm mostly against general compile time code execution, because I'm afraid of people getting carried away with it. But it's technically a potential solution for these sorts of things, too.)
The text was updated successfully, but these errors were encountered: