[plt-scheme] Defining structures

From: aditya shukla (adityashukla1983 at gmail.com)
Date: Tue Feb 17 20:43:09 EST 2009

I have a doubt the concept of defining structures.In htdp chapter 6  its
given as

A STRUCTURE DEFINITION is, as the term says, a new form of definition. Here
is DrScheme's definition of posn: i have modified the example here

(define-struct entry (name zip phone))

Now a few lines later it says

If we give the structure a name,

(define phonebook (make-entry 'PeterLee 15270 '606-7771))

Now my question here is  phonebook the name of the structure  or it is a
structure of type entry?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090217/0553d277/attachment.html>

Posted on the users mailing list.