=================================================================== RCS file: /home/cvs/OpenXM/src/OpenMath/OMproxy.java,v retrieving revision 1.24 retrieving revision 1.27 diff -u -p -r1.24 -r1.27 --- OpenXM/src/OpenMath/OMproxy.java 2000/01/20 18:14:32 1.24 +++ OpenXM/src/OpenMath/OMproxy.java 2000/01/21 06:55:45 1.27 @@ -1,5 +1,5 @@ /** - * $OpenXM: OpenXM/src/OpenMath/OMproxy.java,v 1.23 2000/01/20 16:40:13 tam Exp $ + * $OpenXM: OpenXM/src/OpenMath/OMproxy.java,v 1.26 2000/01/21 06:27:24 tam Exp $ */ import JP.ac.kobe_u.math.tam.OpenXM.*; @@ -65,21 +65,24 @@ class OMproxy implements Runnable{ ox.send(stack.pop()); } }catch(MathcapViolation e){ - stack.push(new CMO_STRING(e.getMessage())); + try{ + ox.send("MathcapViolation: "+ + new CMO_ERROR2(new CMO_STRING(e.getMessage()))); + }catch(MathcapViolation tmp){} } } private void SM_executeFunction() throws java.io.IOException{ String function_name; CMO[] argv; - int argc = 1; + int argc; if(!(stack.peek() instanceof CMO_STRING)){ stack.push(new CMO_ERROR2()); return; } function_name = ((CMO_STRING)stack.pop()).getString(); - //argc = ((CMO_INT32)stack.pop()).intValue(); + argc = ((CMO_INT32)stack.pop()).intValue(); argv = new CMO[argc]; for(int i=0;i