Re: Module lookup and class naming

"Bertrand LUPART - Linkeo.com" <[email protected]> Thu, 23 Mar 2017 15:42:49 +0100
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Hi Henrik,

>> This leads me to two questions :
>> 
>> 1- Invoking String classes (like String.SplitIterator) from my String
>>   class fails because of class name collision. There should be a way to
>>   ask the compiler to look up String.SplitIterator from the top level
>>   hierarchy and not the local class but i failed to find this myself
>>   from the doc.
> 
> Surprise; there is! Try global.String.SplitIterator.
> 
>> 2- Obviously, renaming the String class solves the issue. Should class
>>   names be globally unique ? Public.Standards.CSV.CSVFILE and
>>   Public.Standards.CSV.CSVString looked redundant to me.
> 
> No need.
> 
>> Thank you,
> 
> No problem,


Wonderful ! Thanks.

-- 
Bertrand