DIP69 - Implement scope for escape proof references

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 8 15:20:53 PST 2014


On Monday, 8 December 2014 at 21:07:39 UTC, Walter Bright wrote:
>> But was there any reason why those traits (alien to type 
>> qualifiers) were
>> pursued? What is the problem with `ref` simply meaning 
>> `non-null pointer` and
>> allowing non-idempotent ref(ref(int))?
>
> Because it isn't just a non-null pointer (and ref's can still 
> be null in C++!), it's an auto-dereferencing pointer.

Don't want to distract from topic that actually matters but would 
be nice to ask you few more question on topic at some point.


More information about the Digitalmars-d mailing list