Re: namespace qualifiers

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

Rob wrote:
> Martin Stachon writes:
> > I think this shouldn't be allowed :
> >
> > include <library> as <keyword> | <builtin>
> 
> It prevents you from using a keyword 
> (like "while", "procedure", etc.)
> as your namespace id, but it allows you to
> override a builtin routine, just as you can already
> when you define a new routine. 
> It seems consistent to me.

But this :

    include get.e as atom

gives you an error, because namespace qualifier "atom"
overrides builtin type "atom" in get.e, which shouldn't happen -
refman says :
    "A namespace identifier has local scope.
    It is known only within the file that declares it,
     i.e. the file that contains the include statement"

Interpreter should also say that builtin is redefined by qualifier,
like if it is redefined by procedure.

[other issue]

I think it may be written in relnotes that exw now in 2.3
waits for a key to be pressed after a console program exits.
In lots of programs the line

    if getc(0) then end if

before exit is now no longer needed. 
(Including dsearch.exw)

Regards,
    Martin Stachon

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

Search



Quick Links

User menu

Not signed in.

Misc Menu