ref is unsafe

Tommi tommitissari at hotmail.com
Wed Jan 9 04:05:06 PST 2013


On Wednesday, 9 January 2013 at 04:33:21 UTC, Zach the Mystic 
wrote:
> I felt confident enough about my proposal to submit it as 
> enhancement request:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=9283

By the way, what do you propose is the correct placement of this 
"new" out keyword:

#1: out ref int get(ref int a);
#2: ref out int get(ref int a);
#3: ref int get(ref int a) out;

I wouldn't allow #3.


More information about the Digitalmars-d mailing list