D's greatest mistakes

Bruno Medeiros brunodomedeiros+spam at com.gmail
Fri Dec 10 10:47:12 PST 2010


On 09/12/2010 18:13, Steven Schveighoffer wrote:
> On Thu, 09 Dec 2010 12:07:28 -0500, Bruno Medeiros
> <brunodomedeiros+spam at com.gmail> wrote:
>
>> On 29/11/2010 22:53, Walter Bright wrote:
>>> Steven Schveighoffer wrote:
>>>> Because we tried hard and failed != it's impossible.
>>>
>>> The source to DMD is there. Feel free to try! I spent months trying to
>>> make it work, and I learned my lesson.
>>
>> Even without knowing anything about DMD internals, I would suspect
>> that to successfully make this change it would require (at least
>> internally in the compiler, but not necessarily in the D language
>> itself) that classes are treated as value types an not as references
>> (similarly to C++, where structs are the same as classes).
>
> Michel Fortin has implemented it in the current compiler, see a later
> thread (const(Object)ref is here).
>
> -Steve

Hum, interesting. Thanks for pointing it out, I'll take a look (and 
hopefully bring my backlog of unread messages up to date soon).

-- 
Bruno Medeiros - Software Engineer


More information about the Digitalmars-d mailing list