[Issue 2913] aliasing a ref type is not possible
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 30 00:40:40 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2913
------- Comment #1 from kamm-removethis at incasoftware.de 2009-04-30 02:40 -------
I'm not sure allowing that alias is a good idea, as ref int and int still name
the same type. If that alias worked, wouldn't you expect
alias ref int rint;
int i = 3;
rint ri = i;
ri = 4;
assert(i == 4);
--
More information about the Digitalmars-d-bugs
mailing list