Re: private include files

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

I would have posted this reply much erlier, but the
cracker who posted that senseless junk (ALL YOUR
BASE ARE BELONG TO US) seems to be crashing my router...
(See bBelow)

Patrick Barnes wrote:
> 
> On Mon, 11 Oct 2004 21:39:56 -0700, Derek Parnell
> <guest at rapideuphoria.com> wrote:
> > posted by: Derek Parnell <ddparnell at bigpond.com>
> > Has anybody got any thoughts about extending the 'include' system so
> > that anything included can only been 'seen' by the file that included it.
> 
> It's been brought up before... but nothing has happened of it.
> Are there any technical problems with implementing it, Rob? That is to
> say, the visibility...
> 
> >    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".  
> 
> Indeed, that is perfect (or maybe 'include private'). 
I think "private include" would look much nicer,
and be less confusing.

> If Euphoria did not have to be backwards compatible, I would say
> 1-level inclusion like this  should be the default behaviour. (with an
> 'include global' or something)
I am definately against that being the default, since
it would cause many of my programs to fail.
In fact, I am still using 3 different versions
of Win32Lib due to compatability problems...
What a headache that is!

> 
> The 'private include' would make namespacing problems so much easier, too...
This would be helpful, I have had namespacing problems that
could have been relolved much easeyer with this.

>  
> > This is just a quick spur-of-the-moment thought, so it probably has
> > got issues with it.
> Not that I can see... certainly no logical problems to it. As long as
> it's not too difficult to implement, Rob, DO IT! smile
Mabey add it into the 2.5 beta, to prevent delaying the
alpha version any farther.

> 
> > It would certainly help me with many of the projects I'm working on.
> And mine, too...
And mine, too... smile

> 
> -- 
> MrTrick
> 
> 

--The REAL CoJaBo!

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

Search



Quick Links

User menu

Not signed in.

Misc Menu