allow on stack with betterC

rikki cattermole rikki at cattermole.co.nz
Tue Oct 23 05:23:42 UTC 2018


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

new only exists thanks to druntime hooks.
So no by-pass. You just can't use it.


More information about the Digitalmars-d-learn mailing list