Re: Yay for me, found an interpreter bug!

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

When Euphoria includes a file, it checks to see
if a file with the same name has already been included.
It only looks at the file *name*, not the full path.
Maybe I should document this better.

If you have:

    include graphics.e

and later, perhaps in a different file you have:

    include c:\euphoria\include\graphics.e

it will ignore the second include. Of course the two
files might be quite different. It doesn't look at
their contents. You could argue that a file should
be assumed to be different if it's in a different
directory. Euphoria doesn't work that way. There are pros
and cons to either approach. I don't think this
issue comes up very often.

On DOS/Windows it assumes that the file name is
the part that comes after the last backslash.
On Linux/FreeBSD it looks for the forward slash.

There is a small bug on DOS/Windows,
since on DOS/Windows you can also usually get away
with using forward slashes in file names.

To be consistent I should probably look for
both slashes on DOS/Windows.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu