allow on stack with betterC

Basile B. b2.temp at gmx.com
Tue Oct 23 13:18:24 UTC 2018


On Tuesday, 23 October 2018 at 05:20:10 UTC, test wrote:
>
> scope tmp 	= new ubyte[4];
>
>
> Error: TypeInfo cannot be used with -betterC
>
>
> how to bypass this ?

Just

     scope ubyte[4] tmp;

doesn't do the job ?
It will be on the stack.


More information about the Digitalmars-d-learn mailing list