Changeset 3842


Ignore:
Timestamp:
09/17/03 15:01:59 (19 years ago)
Author:
piso
Message:

typeOf(), classOf(), typep()

File:
1 edited

Legend:

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

    r3781 r3842  
    33 *
    44 * Copyright (C) 2003 Peter Graves
    5  * $Id: Complex.java,v 1.20 2003-09-14 17:36:11 piso Exp $
     5 * $Id: Complex.java,v 1.21 2003-09-17 15:01:59 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    6262    }
    6363
     64    public LispObject typeOf()
     65    {
     66        return Symbol.COMPLEX;
     67    }
     68
     69    public LispClass classOf()
     70    {
     71        return LispClass.COMPLEX;
     72    }
     73
    6474    public LispObject typep(LispObject typeSpecifier) throws LispError
    6575    {
     
    6777            return T;
    6878        if (typeSpecifier == Symbol.NUMBER)
     79            return T;
     80        if (typeSpecifier == LispClass.COMPLEX)
     81            return T;
     82        if (typeSpecifier == LispClass.NUMBER)
    6983            return T;
    7084        return super.typep(typeSpecifier);
Note: See TracChangeset for help on using the changeset viewer.