Include system
- Posted by ags <eu at 531pi.co.nz> Dec 13, 2006
- 1191 views
Hi All I've just had a thought about the include system, well an observation really. A program in a sub folder of an include file can say something like:
include ..\file_one.e
Which sucessfully includes a file from one directory level up. But if that file_one.e includes another file from the folder it is in, eg file_two.e, the interpreter will not be able to locate it. What is to stop the interpreter automatically searching the folder an include is actually in for any includes that file looks for? Or would this break things? (even more I say this because of making library distributions--if you want to keep any demos in a sub folder you would want to include ..\something.ew (or include ..\include\something.ew) but if that file in turn includes stuff then things get broken. Gary