On 7/28/05, Rodrigo B. de Oliveira <[EMAIL PROTECTED]> wrote:
> ...
> I'm getting off-by-one errors only with raise/throw statements:
> 

The behavior is actually a little more complex but still predictable.
The stack trace entry for the raise line is always the line of the
next statement in the same method:

<src name="other.boo">
def foo():
     raise "foo"


     return 1
 
 def bar():
     foo()
 
 bar()
</src>

I get then:
 
Unhandled Exception: System.ApplicationException: foo
 in [0x0000a] (at Other.boo:5) OtherModule:foo ()
 in [0x00000] (at Other.boo:8) OtherModule:bar ()
 in [0x00000] (at Other.boo:10) OtherModule:Main (System.String[] argv)
 
Any ideas?
bamboo
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to