Re: Include system

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

Something I wanted to mention that is closely related to this topic is
the fail-safe default include path that Eu uses on windows when all the searches
fail.

I beleive it's "c:\euphoria" or "/euphoria".

For one thing, this has caused me grief in the past until I realized what Eu was
doing. As far as I know it's not documented.

Second, I beleive I have a better solution.
When developing my preprocessor and dealing with this situation, I didn't like
the idea of a hardcoded default. My solution was to derive the default include
path from the directory the interpetter was called from.
Eg. the path specified in the first subscript of command_line()
For all intent and purpose, I think this works the same as now, but with the
additional flexibility of using an educated guess instead of an assumption.

Maybe even better would be to just eliminate the default behaviour and have it
fail at that point.

Is there something I'm missing here that makes the hard coded default useful?

Chris Bensler
~ The difference between ordinary and extraordinary is that little extra ~
http://empire.iwireweb.com - Empire for Euphoria

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

Search



Quick Links

User menu

Not signed in.

Misc Menu