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

Joe l0calh05t at gmx.net
Thu Nov 15 00:53:45 PST 2012


On Wednesday, 14 November 2012 at 09:31:47 UTC, eskimo wrote:
> But first it is copied to every generic function that might be 
> called on
> the way.

Ok, I guess it just doesn't do what I understood it to do (which 
is too bad, but to be expected with a new language). In any case 
you would appear to be correct, as

void main()
{
	Foo f;
	Observer o = new Observer;
	f.prop.connect(&o.watch);
	f.prop = 7;
	writeln(f.prop.get);
}

works. It just doesn't look like intended.


More information about the Digitalmars-d mailing list