1. include-paths (Rob Craig)
- Posted by stabmaster_ at HOTMAIL.COM Apr 07, 2001
- 520 views
Here's something that I can find quite annoying: Say that I have a file called FOO.EX in wich I do the following include inc\bar.e where "inc" is a subdirectory to the same directory that FOO.EX belongs to. Now, if I include a third file in BAR.E (wich is in the same directory as BAR.E), like this: include grill.e I will get an error saying "can't find c:\...\grill.e". To make it work I have to write "include inc\grill.e" instead. My question is; why can't Ex look for include files in the directory of their direct "parent" (BAR.E in this case), and not only in the directory of FOO.EX ?
2. Re: include-paths (Rob Craig)
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 07, 2001
- 519 views
> Here's something that I can find quite annoying: > > Say that I have a file called FOO.EX in wich I do the following > > include inc\bar.e > > > where "inc" is a subdirectory to the same directory that FOO.EX belongs to. > Now, if I include a third file in BAR.E (wich is in the same directory as > BAR.E), like this: > > include grill.e > > I will get an error saying "can't find c:\...\grill.e". To make it work I > have to write "include inc\grill.e" instead. > My question is; why can't Ex look for include files in the directory of > their direct "parent" (BAR.E in this case), and not only in the directory of > FOO.EX ? This would be very useful to me also, atm I do it by having all programs include files as ..\directory\include.e It's useful to have include files in separate directories, you can include documentation and test programs with them while keeping it separate from the main program and the other includes. Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/
3. Re: include-paths (Rob Craig)
- Posted by Robert Craig <rds at RapidEuphoria.com> Apr 08, 2001
- 502 views
stabmaster writes: > My question is; why can't Ex look for include files in the > directory of their direct "parent" (BAR.E in this case), > and not only in the directory of FOO.EX ? Thanks for the suggestion. Others have made similar suggestions. I'll consider it if/when I get around to making changes to the include mechanism. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
4. Re: include-paths (Rob Craig)
- Posted by Kat <gertie at PELL.NET> Apr 08, 2001
- 520 views
On 8 Apr 2001, at 10:10, Robert Craig wrote: > > stabmaster writes: > > My question is; why can't Ex look for include files in the > > directory of their direct "parent" (BAR.E in this case), > > and not only in the directory of FOO.EX ? > > Thanks for the suggestion. > Others have made similar suggestions. > I'll consider it if/when I get around to making > changes to the include mechanism. This comes under the heading "Making It Smarter". After all, if i need something, i'll first look around me where i am, before i book a plane to Alaska to look for it there. Interpreters should be mind-bogglingly smarter than they are now, but without the unannounced and pseudo-random context shifts of REBOL. Kat