Compiler bug? (alias sth this; and std.signals)
Joe
l0calh05t at gmx.net
Wed Nov 14 00:15:30 PST 2012
On Tuesday, 13 November 2012 at 22:55:38 UTC, eskimo wrote:
> Property is a struct and thus it is passed by value, which
> means that
> the signal is copied.
But wait! Due to "alias get this;", f.prop shouldn't copy prop
but call get (which it does in the working - second - case)!
How to check? Remove the alias and writeln(f.prop) prints
"Property(7)", with the alias writeln(f.prop) prints "7"
More information about the Digitalmars-d
mailing list