Re: Global = root of all evil

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

Derek Parnell wrote:
> If we had the situation where every name collision had to be disambiguated
> using
> namespace ids, and if one wanted to refer to a 'y()' routine that was local
> to the current file, how would one indicate that? I mean, is it possible that
> the current file can have a predefined namespace identifier ... ?
> 
>    fr:f( fr:x(), this:y(), fr:z() )

I think in Perl you can use main::y(), but there's no need because if it isn't
qualified then it's assumed to be in "main".

Gary

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

Search



Quick Links

User menu

Not signed in.

Misc Menu