Re: Namespace request
- Posted by Igor Kachan <kinz at peterlink.ru> Feb 12, 2006
- 544 views
Jason Gade wrote: > > Rob, can you change namespacing so that more than one file can be included > into > the same namespace? > > Here is an example of what I want to do: > > include misc.e as rds > include machine.e as rds > include dll.e as rds > > Currently the interpreter gives an error. > > Rationale: I want to use namespaces in a file that is intended to be included > by another so as to avoid conflicts in user programs. But when I know that > there > will be no conflicts within the files that I'm including I don't want to make > a new namespace for every single include. This will also help prevent > namespace > pollution by reducing the number of unique namespaces that a program needs to > come up with. Hi Jason, Just combine these libs into a single one, say, some 'misc_machine_dll.e' and include it:
include misc_machine_dll.e as rds
Why not? Regards, Igor Kachan kinz at peterlink.ru