/[gzz]/gzz/lava/gzz/potion/Call.java
ViewVC logotype

Diff of /gzz/lava/gzz/potion/Call.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by benja, Wed Jan 1 22:46:50 2003 UTC revision 1.6 by benja, Thu Jan 2 00:00:49 2003 UTC
# Line 86  public abstract class Call implements Ex Line 86  public abstract class Call implements Ex
86          for(i++; i<params.length; i++)          for(i++; i<params.length; i++)
87              n[i] = params[i];              n[i] = params[i];
88    
89          return newCall(params);          return newCall(n);
90      }      }
91    
92      abstract protected Call newCall(FunctionExpression[] params);      abstract protected Call newCall(FunctionExpression[] params);
# Line 97  public abstract class Call implements Ex Line 97  public abstract class Call implements Ex
97              result[i] = params[i].evaluate(context);              result[i] = params[i].evaluate(context);
98          return result;          return result;
99      }      }
100    
101        public String toString() {
102            StringBuffer buf = new StringBuffer(head.toString());
103            buf.append("[");
104            for(int i=0; i<params.length-1; i++) {
105                buf.append(params[i].toString());
106                buf.append(", ");
107            }
108    
109            if(params.length > 0)
110                buf.append(params[params.length-1]);
111    
112            buf.append("]");
113            return buf.toString();
114        }
115  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26