July 06, 2011 [dmd-internals] Type-checked arrays! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michel Fortin | 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 |
Copyright © 1999-2021 by the D Language Foundation