why allocators are not discussed here
Dicebot
public at dicebot.lv
Fri Jun 28 05:07:15 PDT 2013
On Friday, 28 June 2013 at 11:55:46 UTC, Adam D. Ruppe wrote:
> On Friday, 28 June 2013 at 07:07:39 UTC, Marco Leise wrote:
>> Isn't that what scope is for?
>
> I don't really know. In practice, it does something else
> (usually nothing, but suppresses heap closure allocation on
> delegates). The DIPs relating to it all talk about returning
> refs from functions and I'm not sure if they relate to the
> built ins or not- I don't think it would quite work for what I
> have in mind.
It is no-op keyword in current implementation for everything but
delegates. DIP speculation was based on
http://dlang.org/attribute.html#scope and "Parameter Storage
Classes" in http://dlang.org/function.html but that info is
obviously outdated.
More information about the Digitalmars-d
mailing list