@safety of Array

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 13 13:48:10 PDT 2014


Example:

ref int getAsRef(int a) @safe //Magic!
{
RefCounted!int rc = a;
return rc.getPayload();
}

I wouldn't want to be on the calling end of this "safe" 
function...


More information about the Digitalmars-d mailing list