core.traits?

Mike Franklin slavo5150 at yahoo.com
Wed Jan 9 03:46:17 UTC 2019


On Wednesday, 9 January 2019 at 03:32:17 UTC, Neia Neutuladh 
wrote:

> The specific thing that he replied to was having a public 
> symbol for realloc that was considered pure. Perhaps a private 
> fakePureRealloc() would be more palatable?

Perhaps; I'm not sure.  The `pureMalloc` implementation is a lot 
of clever hackery anyway, so I think it would be best to just 
implement stack-allocated dynamic arrays (i.e. 
https://issues.dlang.org/show_bug.cgi?id=18788) and avoid the 
games.  That would have solved the immediate need I had for 
converting runtime hooks to templates, and would help some of 
that work move forward.

Mike



More information about the Digitalmars-d mailing list