Re: Include System (was Standardized Euphoria)

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

Pete Lomax wrote:
> 
> Suppose both chris.e and dave.e have:
> }}}
<eucode>
> include bob.e
> </eucode>
{{{

> and in this case we mean the same bob.e, shared, and let's say it is just:
> }}}
<eucode>
> puts(1,"hello from bob\n")
> </eucode>
{{{

> 
> What I am saying is that I cannot organise these naturally into bob/ chris/
> and dave/ subdirs, and then have a main.exw:
> }}}
<eucode>
> include bob/bob.e
> include chris/chris.e
> include dave/dave.e
> </eucode>
{{{

> 
> Try it, it just does not work.
> (it works fine on 2.5)

With 3.0.1-cb.1 you should not need to use ../

chris.e and dave.e should include bob/bob.e
when Eu fails to find ./chris/bob/bob.e it then will try ./bob/bob.e
and then the include paths as normal.

A benefit of this behaviour is that you can have libraries that rely on
different versions of an API.

you could have
main/bob/bob.e
main/chris/bob/bob.e
main/dave/bob/bob.e

and they could all be different


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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu