1. Re: Compiler ?? (dynamic inclusion)

>Now I agree with you
Thank you.


>we already have platform() which defines
>Linux/Win/Dos, so we can write platform dependent code.
>if platform() = LINUX then
>   x = 4 ... etc.
>elsif platform() = DOS then ...
Yup. However, this solution..

if platform()=LINUX then
do_this()
else
do_that()
end if

..is not optimal (branching is time-consuming). I'd rather see the following
being possible:

ifdef LINUX
do_this()
else
do_that()
endif

in this case the interpreter should only add whatever is relevant to its
"execution-heap" at loading-time and not even lay an eye on the other code
(would also make it possible to have Win API calls in a program and run it
with ex.exe/exu by "undefining" WIN32).



>However, what we really need is conditional _includes_, for example,
>if platform() = LINUX then include xgraphics.e
>elsif platform() = DOS then include graphics.e ....

..wich would be solved by letting the programmer DEFINE his/her own
conditions.
I also suspect that function/procedure declarations are illegal inside
IF..END IF (I haven't actually tried it..)




________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu