private include files

new topic     » topic index » view thread      » older message » newer message

Has anybody got any thoughts about extending the 'include' system so
that anything included can only been 'seen' by the file that included it.

For example, if we have ...

   private include abc.e

then only the file that has that line can see the 'globals' that are
defined inside "abc.e". So if another file wants to see them they also
have to explictly include "abc.e".  Further more, if "abc.e" has
already been included without the private qualifier, that will no cause
any conflicts.

This is just a quick spur-of-the-moment thought, so it probably has
got issues with it.

It would certainly help me with many of the projects I'm working on.

-- 
Derek Parnell
Melbourne, Australia

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu