Re: Include system
- Posted by ags <eu at 531pi.co.nz> Dec 14, 2006
- 1137 views
Chris Bensler wrote: > Hi Chris, All good on the other points. > Just MNSHO, but I don't suggest using ..\ in an include statement, although > I can see the reason, it may not be avoidable and is not of particular concern > if the lib will only be used in a particular project. > Doing so means that the subfolder is bound to the parent folder. > I wouldn't say it's taboo, but it should be considered with the same weight > as using global declarations should. Not only would I want to use ..\file.e I'd probably want to use ..\lib\file.e In the case of a library distribution it would be very helpful to keep the folder structure cleaner, but you are right, it would make moving the sub folder harder (or copying any examples elsewhere harder) I like Mario Steele's idea better (same as in Perl) you can modify the include path within the program, so if you have (eg) at the top of each example: include_folder ..\lib It would be easy to change (or remove) just that one line. What do you think? Gary