[typing] Type-erasure re generics

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Sep 29 09:35:50 PDT 2010


On 9/29/10 9:30 PDT, Justin Johansson wrote:
> On 30/09/2010 2:18 AM, Jonathan M Davis wrote:
>> On Wednesday 29 September 2010 08:14:38 Justin Johansson wrote:
>>> Can someone please inform me if D does type-erasure on generic
>>> types as does Java?
>>>
>>
>> Wow. Goodness no. Generics and templates are _completely_ different.
>>
>> Java is the only language that I'm aware of that does type erasure,
>> and the only
>
> Thanks Jonathan et. al. for many well-thought responses and
> perhaps material for TDPL Edition 2. Andrei will be sure
> to buy you guys, and other respondents, a beer for each new
> page written. :-)

TDPL includes a long discussion between homogeneous and heterogeneous 
translation (as defined by the paper "Pizza into Java" by Odersky/Wadler).

Andrei


More information about the Digitalmars-d mailing list