[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #f = #none ?
- To: alms@cambridge.apple.com, Stavros Macrakis <macrakis@osf.org>
- Subject: Re: #f = #none ?
- From: alms@cambridge.apple.com (Andrew LM Shalit)
- Date: Wed, 18 Nov 1992 11:23:07 -0500
- Cc: info-dylan
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.