core.traits?

Neia Neutuladh neia at ikeran.org
Wed Jan 9 03:32:17 UTC 2019


On Wed, 09 Jan 2019 02:32:50 +0000, Mike Franklin wrote:
> I tried to convert `_d_arraycast` to a template in
> https://github.com/dlang/druntime/pull/2268 and ran into similar
> problems.  Some tried to help with a `pureMalloc` implementation in
> https://github.com/dlang/druntime/pull/2276, but that didn't go well
> either.  Walter responded with "Since realloc() free's memory, it cannot
> ever be considered pure."  Well, what the hell are we supposed to do
> then?

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?


More information about the Digitalmars-d mailing list