Re: Why doesn't this work? (short)

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

Al Getz wrote:

----------
> From: Al Getz <Xaxo at aol.com>
> Sub: RE: Why doesn't this work? (short)

<snip>

> 2. I would bet that there are not that many 
> people using the namespace thing yet.
> If they are using it, they arnt using it very 
> much or they would have noticed this already.
> Even so, i would seriously doubt that they are 
> using it in a way that would break their code 
> if a warning was issued instead of halting.
> If it now haults on error, then their code cant 
> contain any errors, so it seems their code wont
> issue any warnings either.

<snip>

Above point sounds as a good invitation to
inventions of some artificial (maybe crazy)
test codes to try the namespace thing from 
all sides.

Actually The Archive almost globally consists
of the programs written without the namespace
feature.

So, those programs are not very useful as
the special test programs -- they have no
any conflicts of any names and only pure
new special stuff can help.

As an example of such special test program
I have attached 4 files.

Try please and you'll see that global integer
z of a.e is not visible inside include files
b.e and c.e.

This feature seems to be not very useful blink

--Just for Topica test I put below the programs
--from the attachment of my damaged 
--previous message.

--a.e file
global integer z
z=1
?z
--a.e eof
--b.e file
global integer z
z=2
?z
--b.e eof
--c.e file
global integer z
z=3
?z
--c.e eof
--z.ex file, run it
include a.e
include b.e
include c.e
?z
z=5
?z
integer z
z=4
z+=z
?z
include c.e
global integer z
z=2
?z
--z.ex eof
--------

Regards,
Igor Kachan
kinz at peterlink.ru

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

Search



Quick Links

User menu

Not signed in.

Misc Menu