On Thu, 10 Aug 2000, ts wrote:

> >>>>> "H" == Hugh Sasse Staff Elec Eng <hgs / dmu.ac.uk> writes:
> 
> H> Can I get eval to be more specific when errors occur?
> 
>  Give it a name (and line number if you want)
> 
> H> +eval(text, a_binding)
> 
>     eval(text, a_binding, "in_eval")

Wow!: 

neelix hgs 98 %> ./!$
./raise_test.new_prime
in eval:10:in `first_raise': Raise error in first_raise (Raisable)
        from in eval:15:in `second_raise'
        from in eval:21:in `initialize'
        from in eval:25:in `new'
        from in eval:25
        from ./raise_test.new_prime:33
neelix hgs 99 %> raise_test.new
raise_test.new:34:in `eval': (eval):10:in `first_raise': Raise error in
first_raise (Raisable)
        from raise_test.new:34
neelix hgs 100 %> /usr/local/bin/diff -u raise_test.new
raise_test.new_prime
--- raise_test.new      Thu Aug 10 12:53:31 2000
+++ raise_test.new_prime        Thu Aug 10 14:20:01 2000
@@ -31,5 +31,5 @@
 
 END
 a_binding = binding
-eval(text, a_binding)
+eval(text, a_binding, "in eval")
 
neelix hgs 101 %> 

Hmmm...
http://www.ruby-lang.org/en/man-1.4/function.html#eval
is rather quiet about that! :-)

>  
> 
> Guy Decoux
> 
> 
	Thank you,
	Hugh
	hgs / dmu.ac.uk