DMD 1.001 release

Walter Bright newshound at digitalmars.com
Wed Jan 24 12:49:34 PST 2007


JohnC wrote:
> "Walter Bright" <newshound at digitalmars.com> wrote in message 
> news:ep7fhf$1d3g$1 at digitaldaemon.com...
>> JohnC wrote:
>>> "Walter Bright" <newshound at digitalmars.com> wrote in message 
>>> news:ep7b0h$155a$2 at digitaldaemon.com...
>>>> JohnC wrote:
>>>>> It appears that overriding TypeInfo implementations is no longer 
>>>>> allowed. Was this intentional?
>>>> TypeInfo is meant to be generated by the compiler.
>>> I understand that. But it was nice to be able to alter the default 
>>> behaviour of TypeInfo_Aa, for example, to be locale-aware. That way I 
>>> could easily get things like the .sort property for string arrays working 
>>> correctly for languages with diacritics etc.
>> How did you alter it?
> 
> Well, I simply redefined TypeInfo_Aa, deriving from TypeInfo, in a new 
> module and overrode the appropriate methods. But now I get "previous 
> definition different" optlink errors. 

Look for the defining module for TypeInfo_Aa in std\typeinfo\*



More information about the Digitalmars-d-announce mailing list