How to reserve memory for a slice in a struct

John Colvin john.loughran.colvin at gmail.com
Wed May 8 02:57:00 PDT 2013


On Tuesday, 7 May 2013 at 11:49:07 UTC, evilrat wrote:
> On Tuesday, 7 May 2013 at 10:58:42 UTC, John Colvin wrote:
>>...
>> 	int a[];
>
> please don't use C style declarations, D style is "type 
> followed by id":
>
> int[] a;

woops, just copied it from the original post.


More information about the Digitalmars-d-learn mailing list