digitalmars.D.bugs - Phobos: throwing null
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The code below causes a segmentfault in dmain2
#
# void main(){
# Object o;
# throw o;
# }
#
Phobos should handle this gracefully:
#
#--- internal/dmain2.d 2005-04-06 12:26:42.000000000 +0200
#+++ internal/dmain2.d 2005-04-11 20:49:50.498678656 +0200
# -76,7 +76,10
# catch (Object o)
# {
# printf("Error: ");
#- o.print();
#+ if(o!==null)
#+ o.print();
#+ else
#+ printf("null\n");
# exit(EXIT_FAILURE);
# }
#
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFCWskr3w+/yD4P9tIRAgB8AJ9oYO1SK5qWEoilGM11QgaoCD78WQCgl1bf
rUKiOqZL2YsNJfRPaw/OwjQ=
=aswE
-----END PGP SIGNATURE-----
Apr 11 2005








Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn>