March 30, 2004 [recursive typedef] why allow them, but forbid recursive aliases? | ||||
---|---|---|---|---|
| ||||
why are recursive typdefs allowed, but recursive aliases forbidden? Replacing the alias that crahsed dmd by a typedef works fine: typedef myfunc delegate(uint) myfunc; void main(){ myfunc fr; myfunc f(uint num){ printf("hello world\n"); return fr; } fr= &f; fr= fr(1); fr(2); } So long! |
Copyright © 1999-2021 by the D Language Foundation