memory management and the standard library
James Blachly
james.blachly at gmail.com
Sun Mar 17 01:34:10 UTC 2019
On 3/16/19 5:17 PM, Olivier FAURE wrote:
> Anyway, it would be pretty nice if there were a standardized way to tell
> a function how it should allocate its memory; it would allow some nice
> strategies like "I know that I'm going to discard most of what this
> function allocates, so just put in in a continuous buffer; then
> deep-copy the relevant data to GC memory, and throw the rest away" (eg
> in a parser).
Wow, that is a really fascinating idea ...
More information about the Digitalmars-d
mailing list