[Issue 303] delegate in finally

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Aug 25 04:50:42 PDT 2006


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

d-bugmail at puremagic.com schrieb am 2006-08-21:
> http://d.puremagic.com/issues/show_bug.cgi?id=303

> ------- Comment #1 from benoit at tionex.de  2006-08-21 09:09 -------
> Sorry pasted the wrong snippet... Now the correct one :)
>
> int func2( char[] msg ){
>     return 1;
> }
>
> int func( char[] delegate() dg ){
>     return func2( dg() );
> }
>
> void main(){
>     try{
>     }
>     finally{
>         func(""); // line 14
>     }
> }
> compiled with dmd 0.165 =>
> t.d(14): return statements cannot be in finally, scope(exit) or scope(success)
> bodies

Added to DStress as
http://dstress.kuehne.cn/run/f/finally_11_A.d

Thomas


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

iD8DBQFE7u4eLK5blCcjpWoRAs3KAKCZLl4aVVHIohMFSEA8ae3PROZDNwCeIlLU
P35UA1cikVwJdFxtlSW8+Vo=
=j7Qx
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list