Is it possible to assumeSafeAppend malloced memory?

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 19 11:51:30 PDT 2014


On Monday, 19 May 2014 at 13:44:45 UTC, monarch_dodra wrote:
> Recently, a new function in druntime was added: "_d_newarrayU".
>
> This void allocates a new array *with* appendable information. 
> We can hope it will be given a more formal and public 
> interface, and it would then be useable by array and/or 
> Appender, to produce slices that have appendable data.

Huh, will it also make possible to call `realloc` if capacity is 
exceeded? If it still resorts to GC in this case, utility of such 
addition sounds questionable.


More information about the Digitalmars-d-learn mailing list