Getting byte size of POD classes and dynamic arrays

Byron Heads byron.heads at gmail.com
Thu May 16 06:49:51 PDT 2013


On Thu, 16 May 2013 08:11:35 -0500, 1100110 wrote:
> 
> __traits(classInstanceSize, MyClass); ?

Any ideas on how to get the element type of an array
ie:   int[]  -> int   int[][]  -> int[]

I am going to block dynamic arrays with more then 1D, since they are 
holding pointers in the data block





More information about the Digitalmars-d-learn mailing list