[dmd-internals] Type-checked arrays!

mrmocool at gmx.de mrmocool at gmx.de
Tue Jul 5 15:49:20 PDT 2011


> 	Expression *e = array->tdata()[0];
> 	array->tdata()[0] = e;
>
> I know it's ugly, but unfortunately C++ doesn't have properties. I'm  
> open to suggestions.

Is there any sane reason why operator[] can't be used?


More information about the dmd-internals mailing list