D - catch the assert
- Kazuhiro Inaba (10/10) Nov 12 2003 According to the reference document, assert() throws an exception and we...
- Walter (8/16) Nov 14 2003 can
- Kazuhiro Inaba (2/3) Nov 14 2003 Thanks. I'll wait for it.
According to the reference document, assert() throws an exception and we can catch it. So I tried to write code with this technique, but then i run into a problem. Thrown object's class seems to be std.assert.Assert, but since "assert" is a reserved identifier, I cannot do: import std.assert; Is there any way to deal with this? Or, std.assert is only for internal use and we should catch the exceptions from assert() with catch(Object o) {} ? -- K.INABA( ki kmonos.net )
Nov 12 2003
"Kazuhiro Inaba" <Kazuhiro_member pathlink.com> wrote in message news:botnq7$2uqv$1 digitaldaemon.com...According to the reference document, assert() throws an exception and wecancatch it. So I tried to write code with this technique, but then i runinto aproblem. Thrown object's class seems to be std.assert.Assert, but since "assert" isareserved identifier, I cannot do: import std.assert;Yes, that's a bug I need to fix.Is there any way to deal with this? Or, std.assert is only for internaluse andwe should catch the exceptions from assert() with catch(Object o) {} ?That will work for the moment.
Nov 14 2003
In article <bp389v$2ih5$2 digitaldaemon.com>, Walter says...Yes, that's a bug I need to fix.Thanks. I'll wait for it.
Nov 14 2003