Sticky Notes

Implements a generic mechanism for attaching named objects to other objects. Useful when you want to store some data about an object, but cannot modify the object's representation.

Procedures

note:attach! obj note-name note-contents

Attaches a note to an object, or replaces an existing note with the same name.

(note:attach! 'elizabeth 'is-name #t)
;Value: ok

(note:get 'elizabeth 'is-name #f)
;Value: #t

(note:get 'sing 'is-name #f)
;Value: #f

note:get obj note-name [optional: value if not found, default #f]

Gets a note associated with an object. See note:attach! for an example.


Scheme Power Tools Documentation
(c) Maciej Pacula 2010-2011
http://mpacula.com