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

Re: #f = #none ?

At 11:10 AM 11/18/92 -0500, Stavros Macrakis wrote:
>    (bind ((no-value (cons #f #f)))
>      (define-method true-false-dontcare (#key (arg no-value))
>        (select arg id?
>          ((#t) "sharp-t was passed")
>          ((#f) "sharp-f wass passed")
>          ((no-value) "no argument was passed")
>          ;otherwise error
>          )))
> Small problem here: there is no way to explicitly specify a don't care
> value.  Correction: make no-value visible....  Do you like that
> solution?  I don't.

I don't see how you can have it both ways.  Either the don't care value
is an explicit published part of the protocol, or it's not.