[mercury-users] maybe(T)

Michael Day mikeday at yeslogic.com
Sun Oct 20 21:30:54 AEST 2002


:- type maybe(T)
	--->	yes(T)
	;	no.

On the C backends, is this type implemented by using a pointer to T to
represent yes(T) and NULL to represent no? If not, is it implemented using
an equally efficient strategy?

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