Re: Detecting the Eu version

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

On Mon, 13 Dec 2004 20:34:47 -0800, Ferlin Scarborough
<guest at rapideuphoria.com> wrote:
> Dynamic inclusion would probably be easy with an interpreter, but may get
> a bit tricky with a bound/shrouded program in some cases, like would you
> have to include all the include files in the bound program just in case
> whatever the trigger is for including that library, changes at some point!

Well, perhaps it (for now) shouldn't be treated fully dynamically...
You could allow includes inside if-statements, as long as the
conditions must be able to be resolved at parse-time.

For instance:
if platform() = LINUX then
    include linux_display.e
elsif platform() = WINDOWS then
    include win_display.e
end if

platform() will *always* be known at parse-time, because it's a
stateless function built into the interpreter. Same with a 'version()'
call.

> See where it can get messy with the bound program?

If it's known at parse-time, it won't affect bound programs.
Executeables aren't meant to be platform-independant.

-- 
MrTrick

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

Search



Quick Links

User menu

Not signed in.

Misc Menu