Include Inside Conditional
- Posted by c.k.lester <euphoric at cklester.com> Feb 20, 2007
- 460 views
Why doesn't Euphoria allow an include statement inside a conditional clause?
if platform() = WIN32 then include win32.e else include other.e end if
That would seem to be the easiest solution to conditional includes, right? Or create an 'import' statement that can handle variables.
if platform() = WIN32 then i = "win32.e" else i = "other.e" end if import i