Re: with euinc statement

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

Phil said:
     One question:  If you know the path well enough that you can make it an
     evironment variable, why can't you just include with the full path?

     Also, I might be wrong here, but don't you have to restart your
computer for
     env. variables to take affect?

Ok, lets say you have a few euphoria programs that you are working on.
Some use an older win32lib functions  and some don't (like onClick).
You don't want to rewite the older programs for the new win32lib cos they
are working, just need a small tweak here and there.
You need a way of altering which win32lib you pick up, and surely you don't
want
to edit autoexec.bat and reboot each time you switch win32lib versions?
Having the SET EUINC in a bat file to launch you program is better, but
still its external to
your euphoria source and therefore you will sooner or later pick up the
wrong version
of win32lib and waste time tracking down bugs that aren't.

Explicitly telling your euphoria source where its includes are coming from
improves the
self-documentation, although a nice comment indicating date / author /
version is always
a good idea too IMHO.

Since I've mentioned win32lib as an example, any comments Derek?

(Thanks for the feedback Rob!)
Alan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu