[Issue 500] New: Cannot assign to delegate during definition

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Dec 23 13:20:22 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-11-13:
> http://d.puremagic.com/issues/show_bug.cgi?id=500

> This compiles:
>   void delegate() y;
>   y = { ... };
>
> This does not:
>   void delegate() y = { ... };
>
> For example:
>   void main() {
>   //      void delegate() y = { return; };
>         void delegate() y;
>         y = { return; };
>         x(y);
>   }
>
>   void x(void delegate() y) {
>     y();
>   }

Added to DStress as
http://dstress.kuehne.cn/run/d/delegate_20_A.d
http://dstress.kuehne.cn/run/d/delegate_20_B.d

Thomas

-----BEGIN PGP SIGNATURE-----

iD8DBQFFjZaZLK5blCcjpWoRAqsiAJ9/4pC/TdF31L5Ddjgbew7wgEoa9gCfZ6TM
lC/v1sZnTumCoR98ZEI59Rc=
=UG0N
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-bugs mailing list