Re: What's new in 2.5?

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

>Christian Cuvier wrote:
>> Ok, let me restate it. What is missing is a way for the including file, and
>> no
>> one else but the included file,
>> to see globals in the included file, so as not to pollute the "universal"
>> namespace, generating name clashes.

How about:

include file as namespace

	...

hide(namespace)

The reason I suggest this is that RDS Eu (and Posetf when I get round
to it) must know which part of the global symbol table to scan when it
finds a "namespace:<whatever>" reference, so it should be relatively
easy to do. The globals will still exist (for debugging/ex.err) but
will be skipped during parsing, avoiding name clashes.

Regards
Pete
PS I may have previously implied that named scopes might apply to
local identifiers. They don't. Namespaces only ever apply to the
global symbol table.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu