[Issue 500] Cannot assign to delegate during definition
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Nov 14 05:55:48 PST 2006
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=500
------- Comment #1 from brunodomedeiros+bugz at gmail.com  2006-11-14 07:55 -------
Not sure it's a bug, that error is because of syntax conflict with struct
initializers (http://www.digitalmars.com/d/struct.html). It's a limitation that
might or might not be fixable, I dunno. (It does seem possible for the grammar
to differentiate
Meanwhile, a workaround:
  void delegate() y = ({ return; });
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list