[Nickle] Exceptions with multiple arguments

Carl Worth nickle@nickle.org
Thu, 5 Dec 2002 10:46:31 -0500


I'm having trouble catching exceptions with multiple arguments.

In my current program it appears that in the catch block the formals
are bound in reverse order.

I tried coding up a minimal case to exercise the bug and found a new
problem:

	$ cat broken_exceptions.5c 
	exception foo (real a, real b);
	
	try {
	        raise foo (1, 2);
	} catch foo (real a, real b) {
	        printf("a = %g, b = %g\n", a, b);
	}

	$ nickle broken_exceptions.5c 
	Stack underflow$

-Carl

-- 
Carl Worth                                        
USC Information Sciences Institute                      cworth@isi.edu