Re: A New Revealation: Semi-Permeable Membranes Mark S. Miller (markm@caplet.com)
Mon, 25 Oct 1999 23:03:26 -0700

At 07:38 PM 10/25/99 , Mark S. Miller wrote:
>We can now define "integer" more simply as
>
>define integerValueGuard coerce(specimen) ^any { integerCoerce(specimen) }
>define integer := settable(integerValueGuard)

Wrong, "integer" must be both a SlotGuard and a ValueGuard, but the above definition creates only a SlotGuard. Oops. Here's a better one:

     define integer {
         to coerce(specimen) ^any { integerCoerce(specimen) }
         to makeSlot(specimen) ^any {
             settable(integer) makeSlot(specimen)
         }
     }



         Cheers,
         --MarkM