1. Re: More Namespace
- Posted by nieuwen at XS4ALL.NL
Oct 01, 1999
> Currently the above works but under the modular scheme suggested it will
> break.
The above is more a benefit than a lost.
Instead of hello.e creating routine namespace conflicts, it isn't part of this
namespace. You
choose to use graphics.e. (as an interface to machine.e) , if you would want to
use machine.e
directly, all you have to do, is add " include machine.e"
Though, I must admit, it has some benefits, it is also the cause that we can't
use any strong
effective library together with another. Just a little thing, that maybe, maybe,
is the reason why
I still haven't seen a strong Eu program, which looking at the libraries already
available is
suprising. But the libraries simply don't work together, due to this.
> I don't like having to search several libraries deep trying to find
> where a program went wrong or where names are having conflicts.
I just don't want names to have conflicts.
And you don't have to go that deep. But evenso, I would settle for a 'public' as
well.
However, why not add 'global include' or a 'public include' ..
In graphics.e you want the routines in machine.e to be exportable (your example
code, that
is), why not specify this, for the 1 of the 10000 times we actually want this.
Plus, what is everybody's issue about breaking code, that never worked in
usuable manner in
the first place. I mean, you would have to alter so much more code, without
these rules, when
you would want to create a usuable program. (not a demo program showing the
features of
one of the libraries, but a big program using multiple libraries) ..
I was the only one that made a problem about the brake of code, and the weird
errors that
could occur with short-circuiting ... and short-circuiting is a thing we can
live without, good
namespace rules are a must to create any huge program. Its precizely what is
stopping
Euphoria at the moment, more than anything else.
Ralf Nieuwenhuijsen
[[ Email ]]
nieuwen at xs4all.nl
ralf_n at email.com
[[ I-Seek-You ]]
UIN: 9389920
[[ The Elevator ]]
http://www.xs4all.nl/~nieuwen