DIP69 - Implement scope for escape proof references
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Mon Dec 8 14:31:46 PST 2014
On 12/8/2014 1:59 PM, Tobias Müller wrote:
> Walter Bright <newshound2 at digitalmars.com> wrote:
> [...]
>> and ref's can still be null in C++!
>
> AFAIK only if you dereference a NULL pointer, which is UB. So not really.
Saying it's UB doesn't help in the slightest. You can still have null ref's, and
no compiler will prevent it.
More information about the Digitalmars-d
mailing list