[alexandria-devel] WITH-STRUCT

Tobias C. Rittweiler tcr at freebits.de
Sun Aug 17 21:42:10 UTC 2008


WITH-STRUCT is the WITH-SLOTS pendant for structures. I think there are
different syntactic variants out there. I'm used to the one in SWANK
which looks as follows:

  (defstruct (foo-struct (:conc-name foo-struct.))
    slot1 slot2 slot3)

  (with-struct (foo-struct. slot1 slot2 slot3) *foo-struct*
    ...)

  -T.




More information about the alexandria-devel mailing list