On Thu, 09 Dec 2010 12:07:28 -0500, Bruno Medeiros <brunodomedeiros+s...@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

Reply via email to