Re: Global = root of all evil
- Posted by ags <eu at 531pi.co.nz>
Nov 06, 2006
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
|
Not Categorized, Please Help
|
|