Structs with pointers?

bearophile bearophileHUGS at lycos.com
Sun Jan 23 07:21:48 PST 2011


Dmitry Olshansky:

> The first two are actually OK, since you pass a copy of a value type 
> FooX to barX.
> If signature was void bar(ref FooX) then it should have failed.
> But the third makes me wonder what the *** is going on.

I have added the third case to this bug report of mine:
http://d.puremagic.com/issues/show_bug.cgi?id=3934

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list