conditional includes
- Posted by Kat <KSMiTH at PELL.NET> Dec 19, 1999
- 520 views
Hey all, Here's an addition to the wish list (or passioned debate) for Eu: scripted include code. Such as this pseudocode: for loop 50 to 0 do if exists(RootFileName & sprint(loop) & ".ew" ) then include RootFileName & sprint(loop) & ".ew" exit end if end for This would pick up the most recent version of RootFileName to include, saving editing the files which include it. Given that Eu can determine if a file has been loaded already and not reload it, some of us (read: "me") use a standard header approach and just include everything up front. Wasteful, i suppose, but at the moment i'm not concerned. That code snippet could be expanded to see if anything in *.ew is called (simply by reading the file that's being compiled) and if not, then don't bother including it. This approach would also be handy for those using othe people's files as includes to not need to edit all their files to use the next edition of win32lib, for instance. I can see how this could be a major problem as far as implementing it in the compiler, making a pre-processor or a interpreter-within-compiler necessary, so i don't expect it in the next release of Eu, if ever,, but it's a thought. Kat