[Issue 2735] Can't assign ref function to function pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 15 11:11:08 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2735





------- Comment #2 from jlquinn at optonline.net  2009-03-15 13:11 -------
(In reply to comment #1)
> I suppose it should be mentioned that it's not possible to declare a ref
> function pointer, or else this would be a no-brainer:
> 
> ref int c() { static int a=2; return a; }
> ref int function() d = &c; // line 8

Oops, yes, I meant to write that :-)


-- 



More information about the Digitalmars-d-bugs mailing list