1. Re: Include System (was Standardized Euphoria)
- Posted by cchris005 at fastmail.fm Dec 30, 2006
- 512 views
> Subject: Re: Include System (was Standardized Euphoria) > > > posted by: Pete Lomax <petelomax at blueyonder.co.uk> > > Chris Bensler wrote: > > I mean if the programmer only wants to include bob.e eventhough bob/bob.e > > exists also. > > > > > > > > > > What if I have bob\bob.e already and I want to move the file into the > > > > project folder? > > > Erm, I don't follow you. What problem are you expecting here? > > > > I mean if the project file has > > include bob\bob.e > > > > and you then move bob\bob.e to bob.e > > does your solution help? > > No. And it should not[1]. > > If you have main.e and bob.e in myapp/ where myapp/main.e is: > }}} <eucode> > include chris/chris.e > </eucode> {{{ > and myapp/chris/chris.e is: > }}} <eucode> > include bob.e > </eucode> {{{ > and there is no myapp/chris/bob.e, then yes, it will include myapp/bob.e > Totally standard behaviour imo. > > If there is also a myapp/bob/bob.e then obviously it will not be loaded. > If there is the above but no myapp/bob.e and you have not previously > included bob/bob.e, it will not perform a nested dir() scan looking > for it, it will just tell you it cannot find it. > > If myapp/chris/chris.e is instead: > }}} <eucode> > include bob/bob.e > </eucode> {{{ > and there is no myapp/bob/bob.e or myapp/chris/bob/bob.e then it will not > be happy with myapp/bob.e (since the partial directory does not match) > and tell you it cannot find it[1]. > > Otoh if one of those does exist (obviously myapp/chris/bob/bob.e would be > included in preference) then to also include myapp/bob.e then that's the > statement you need (or ..\bob.e), ditto myapp/bob/bob.e. > > Regards, > Pete > Just wondering... Linux supports symbolic links, which enable you to include abstract files - Eu just asks the system to get the right file off the link. This facility is not supported in the Windows shell, but is available from any NTFS file system. I use Hard Link Magic, a nice little freeware, to enable it. Dunno about Macs, but I think they know about file links too. So, after all, why ask Eu to implement abstract files, ie files you don't want to care about the exact location so that it can change, since the OS, possibly with a little help, can do it? CChris -- cchris005 at fastmail.fm -- http://www.fastmail.fm - Email service worth paying for. Try it for free