[mercury-users] maybe(T)

Michael Day mikeday at yeslogic.com
Mon Oct 21 08:38:59 AEST 2002


> Yes.  Well, close enough anyway.  We use a pointer to T to represent
> yes(T) and we use a pointer with value "1" to represent no.

Actually I made a mistake, the maybe(T) type has "no" as its *first*
functor, not the second.  Does this affect its representation?

Michael

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list