[Issue 7135] [tdpl] Multiple delegate-related issues (literal syntax,	@system deduction)
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Dec 31 10:32:48 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7135
Andrei Alexandrescu <andrei at metalanguage.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
--- Comment #7 from Andrei Alexandrescu <andrei at 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: -------
    
    
More information about the Digitalmars-d-bugs
mailing list