Lecture 10 Notes

6 1 d d

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ¨¥  This says that a or that is a It creates a data type with the following interface: ¡  ¤ § ¤ ! £ ¡ ¡ ¤ £¡ ¥§ ¤¤ a procedure, , for constructing a . The procedure tests its argument with ; if the argument does not pass this test, an error is reported. ¡ ¤  ¤¥"¡ ¥§ " 1¦¤¢§ ¥   "¡4 D¤© § ¡ ¤§£ ¡  ¥¤ ¤ ¡ ¤  ¤¥"¡ ¥§ " 1¦¤¢§ ¥ a 3-argument procedure, , for building an . This procedure tests its first argument with and its second and third arguments with to ensure that they are appropriate values.  ¤ ¥4    ¡"§ ¡ ¨¥  ¡ ¤ £¡ ¥§ ¤¤  ¡"§ ¡ ¨¥  a 1-argument predicate that when passed a or an returns true. For all other arguments, it returns false. ¡ ¡§¥£¡ ©¤¢! ©¨¦! type-name type-predicate-name field-name predicate  ¤ ¤ ¥ ¡   ¢ ¡ ¡§ £¡ ©!¢¢¤ ©¨¥ ¤ variant-name :  ¡  ¤ § " §¥ ¤¢¨¥  ¤ "¡§...
View Full Document

This document was uploaded on 03/17/2014 for the course CSG 111 at Northeastern.

Ask a homework question - tutors are online