Changeset 4322
- Timestamp:
- 10/12/03 13:45:13 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/LispString.java
r4103 r4322 3 3 * 4 4 * Copyright (C) 2002-2003 Peter Graves 5 * $Id: LispString.java,v 1.6 1 2003-09-28 16:26:31piso Exp $5 * $Id: LispString.java,v 1.62 2003-10-12 13:45:13 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 64 64 } 65 65 66 public LispObject typep(LispObject typeSpecifier) throws ConditionThrowable 67 { 68 if (typeSpecifier instanceof Symbol) { 69 if (typeSpecifier == Symbol.STRING) 66 public LispClass classOf() 67 { 68 return BuiltInClass.STRING; 69 } 70 71 public LispObject typep(LispObject type) throws ConditionThrowable 72 { 73 if (type instanceof Symbol) { 74 if (type == Symbol.STRING) 70 75 return T; 71 if (type Specifier== Symbol.BASE_STRING)76 if (type == Symbol.BASE_STRING) 72 77 return T; 73 if (type Specifier== Symbol.SIMPLE_STRING ||74 type Specifier== Symbol.SIMPLE_BASE_STRING)78 if (type == Symbol.SIMPLE_STRING || 79 type == Symbol.SIMPLE_BASE_STRING) 75 80 return fillPointer < 0 ? T : NIL; 76 81 } 77 return super.typep(typeSpecifier); 82 if (type == BuiltInClass.STRING) 83 return T; 84 return super.typep(type); 78 85 } 79 86
Note: See TracChangeset
for help on using the changeset viewer.