Changeset 14086
- Timestamp:
- 08/14/12 12:40:56 (8 years ago)
- Location:
- trunk/abcl/src/org/armedbear/lisp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/FuncallableStandardObject.java
r13888 r14086 42 42 { 43 43 protected LispObject function; 44 protected int numberOfRequiredArgs;45 44 46 45 protected FuncallableStandardObject() -
trunk/abcl/src/org/armedbear/lisp/StandardGenericFunction.java
r14008 r14086 57 57 slots[StandardGenericFunctionClass.SLOT_INDEX_REQUIRED_ARGS] = NIL; 58 58 slots[StandardGenericFunctionClass.SLOT_INDEX_OPTIONAL_ARGS] = NIL; 59 numberOfRequiredArgs = 0;60 59 slots[StandardGenericFunctionClass.SLOT_INDEX_INITIAL_METHODS] = NIL; 61 60 slots[StandardGenericFunctionClass.SLOT_INDEX_METHODS] = NIL; … … 229 228 final StandardGenericFunction gf = checkStandardGenericFunction(first); 230 229 gf.slots[StandardGenericFunctionClass.SLOT_INDEX_REQUIRED_ARGS] = second; 231 gf.numberOfRequiredArgs = second.length();232 230 return second; 233 231 } … … 578 576 final StandardGenericFunction gf = checkStandardGenericFunction(first); 579 577 LispObject args = second; 580 LispObject[] array = new LispObject[gf.numberOfRequiredArgs]; 581 for (int i = gf.numberOfRequiredArgs; i-- > 0;) 578 int numberOfRequiredArgs 579 = gf.slots[StandardGenericFunctionClass.SLOT_INDEX_REQUIRED_ARGS] 580 .length(); 581 LispObject[] array = new LispObject[numberOfRequiredArgs]; 582 for (int i = numberOfRequiredArgs; i-- > 0;) 582 583 { 583 584 array[i] = gf.getArgSpecialization(args.car()); … … 607 608 final StandardGenericFunction gf = checkStandardGenericFunction(first); 608 609 LispObject args = second; 609 LispObject[] array = new LispObject[gf.numberOfRequiredArgs]; 610 for (int i = gf.numberOfRequiredArgs; i-- > 0;) 610 int numberOfRequiredArgs 611 = gf.slots[StandardGenericFunctionClass.SLOT_INDEX_REQUIRED_ARGS] 612 .length(); 613 LispObject[] array = new LispObject[numberOfRequiredArgs]; 614 for (int i = numberOfRequiredArgs; i-- > 0;) 611 615 { 612 616 array[i] = gf.getArgSpecialization(args.car());
Note: See TracChangeset
for help on using the changeset viewer.