[plt-scheme] Dot-notation for structure field access

jos koot jos.koot at telefonica.net
Thu Mar 15 10:29:38 EDT 2007


I forgot to mention that the identifiers for def and var can contain periods:

(define-struct-type (a.b s c p) (c.d) (make-inspector))
(a.b e.f (1))
e.f.c.d ;--> 1

(((((lambda(x)((((((((x x)x)x)x)x)x)x)x))
    (lambda(x)(lambda(y)(x(x y)))))
   (lambda(x)(x)x))
  (lambda()(printf "Greetings, Jos~n")))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.cs.brown.edu/pipermail/plt-scheme/attachments/20070315/bc0a07f0/attachment.htm


More information about the plt-scheme mailing list