http://d.puremagic.com/issues/show_bug.cgi?id=7135
Andrei Alexandrescu <and...@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #7 from Andrei Alexandrescu <and...@metalanguage.com> 2011-12-31 10:32:43 PST --- One more thing - the example in the book reads: obj.addMethod("sayHello", Variant(Dynamic, Variant[]...) { writeln("Hello, world!"); return Variant(); }); That doesn't work. The compilable version reads: obj.addMethod("sayHello", delegate Variant(Dynamic, Variant[]...) { writeln("Hello, world!"); return Variant(); }); Can we arrange things such that the "delegate" or "function" keywords aren't require in the literal definition? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------