[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nothing is real



    Date: 19 April 1983 19:13 EST
    From: JDR at MIT-MC.ARPA
    To:   t-discussion at YALE
    Re:   Nothing is real

    I would like to suggest the addition of the following definition.

    (define *nothing*
       (object ()
         ((nothing? self) t)
         ((print self stream) (display "" stream))))

    This would be the ideal thing to return when the value of the result
    is unimportant.

This isn't the right way to implement objects which "don't print"; the
right way is with the REPL-WONT-PRINT? operation, as documented in the
manual.  The object *REPL-WONT-PRINT* is probably what you're looking
for.