Changeset 3726
- Timestamp:
- 09/13/03 17:22:29 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/Primitives.java
r3699 r3726 3 3 * 4 4 * Copyright (C) 2002-2003 Peter Graves 5 * $Id: Primitives.java,v 1.38 4 2003-09-11 14:58:46piso Exp $5 * $Id: Primitives.java,v 1.385 2003-09-13 17:22:29 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 2314 2314 }; 2315 2315 2316 // ### subtypep2317 // subtypep type-1 type-2 &optional environment => subtype-p, valid-p2318 private static final Primitive SUBTYPEP = new Primitive("subtypep") {2319 public LispObject execute(LispObject[] args) throws LispError2320 {2321 if (args.length < 2 || args.length > 3)2322 throw new WrongNumberOfArgumentsException(this);2323 if (args[0] == NIL)2324 return T;2325 TypeSpecifier ts1 = TypeSpecifier.getInstance(args[0]);2326 TypeSpecifier ts2 = TypeSpecifier.getInstance(args[1]);2327 return ts1.isSubtypeOf(ts2);2328 }2329 };2330 2331 2316 // ### function-lambda-expression 2332 2317 // function-lambda-expression function => lambda-expression, closure-p, name
Note: See TracChangeset
for help on using the changeset viewer.