Emplace vs closures
Lodovico Giaretta via Digitalmars-d
digitalmars-d at puremagic.com
Mon Sep 19 07:26:09 PDT 2016
On Monday, 19 September 2016 at 14:22:16 UTC, Steven
Schveighoffer wrote:
> On 9/19/16 7:27 AM, Lodovico Giaretta wrote:
>
>> What I'd like to know: is this usage widespread? Should we
>> forbid it for
>> the sake of security?
>
> No. There is no security concern here. You are dereferencing a
> null pointer, which is perfectly safe.
>
> -Steve
Ok, wrong wording. I meant "should we forbid it to avoid long
hours of debugging and unexpected behaviours? One uses emplace
expecting that it Just Works(TM), which is not true for nested
things."
More information about the Digitalmars-d
mailing list