Compiler bug? (alias sth this; and std.signals)

eskimo jfanatiker at gmx.at
Wed Nov 14 00:10:01 PST 2012


In your particular case, which this definitely is a bug and if only for
missing documentation that you should only use it from classes, you
might regardless be better of with writeln(f.prop.get) because you avoid
the needless copy with memory allocation/deallocation (if done
correctly) of the signal.

Passing f.prop directly should be possible for any function that takes
an int, but not for generic template functions because then you pass the
struct directly.

Best regards,

Robert




More information about the Digitalmars-d mailing list