Changeset 3726


Ignore:
Timestamp:
09/13/03 17:22:29 (20 years ago)
Author:
piso
Message:

SUBTYPEP is now implemented in subtypep.lisp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Primitives.java

    r3699 r3726  
    33 *
    44 * Copyright (C) 2002-2003 Peter Graves
    5  * $Id: Primitives.java,v 1.384 2003-09-11 14:58:46 piso Exp $
     5 * $Id: Primitives.java,v 1.385 2003-09-13 17:22:29 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    23142314    };
    23152315
    2316     // ### subtypep
    2317     // subtypep type-1 type-2 &optional environment => subtype-p, valid-p
    2318     private static final Primitive SUBTYPEP = new Primitive("subtypep") {
    2319         public LispObject execute(LispObject[] args) throws LispError
    2320         {
    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 
    23312316    // ### function-lambda-expression
    23322317    // function-lambda-expression function => lambda-expression, closure-p, name
Note: See TracChangeset for help on using the changeset viewer.