Include Inside Conditional

new topic     » topic index » view thread      » older message » newer message

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


new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu