Changeset 12461


Ignore:
Timestamp:
02/13/10 21:43:16 (13 years ago)
Author:
ehuelsmann
Message:

In the category of making things readable:

readable class cast exceptions for NULL and
UNBOUND values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Lisp.java

    r12450 r12461  
    26202620    exportSpecial("*COMPILE-FILE-ENVIRONMENT*", PACKAGE_SYS, NIL);
    26212621
    2622   public static final LispObject UNBOUND_VALUE = new LispObject()
     2622  public static final LispObject UNBOUND_VALUE = new unboundValue();
     2623  private static class unboundValue extends LispObject
     2624  {
     2625    @Override
     2626    public String writeToString()
    26232627    {
    2624       @Override
    2625       public String writeToString()
    2626       {
    2627         return "#<UNBOUND>";
    2628       }
    2629     };
    2630 
    2631   public static final LispObject NULL_VALUE = new LispObject()
     2628      return "#<UNBOUND>";
     2629    }
     2630  }
     2631
     2632  public static final LispObject NULL_VALUE = new nullValue();
     2633  private static class nullValue extends LispObject
     2634  {
     2635    @Override
     2636    public String writeToString()
    26322637    {
    2633       @Override
    2634       public String writeToString()
    2635       {
    2636         return "null";
    2637       }
    2638     };
     2638      return "null";
     2639    }
     2640  }
    26392641
    26402642  public static final Symbol _SLOT_UNBOUND_ =
Note: See TracChangeset for help on using the changeset viewer.