[dmd-internals] Type-checked arrays!

Michel Fortin michel.fortin at michelf.com
Wed Jul 6 04:22:11 PDT 2011


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.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the dmd-internals mailing list