[dmd-internals] Type-checked arrays!

Jacob Carlborg doob at me.com
Wed Jul 6 12:36:25 PDT 2011


On 6 jul 2011, at 13:22, Michel Fortin wrote:

> Le 2011-07-06 à 2:28, Jacob Carlborg a écrit :
> 
>> It's possible to emulate properties in C++ with some help of operator overloading: http://en.wikipedia.org/wiki/Property_%28programming%29#C.2B.2B
> 
> Doesn't work in this case because the property needs access to a variable of the base class. I realize I could add a pointer to it in the property struct, but that'd increase the array size by one word, and I don't want that.

Ok, I see now.

-- 
/Jacob Carlborg



More information about the dmd-internals mailing list