unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#13904: A bug in guile's newest documentation.
@ 2013-03-08  8:39 Patrick Pan
  2013-03-09  0:52 ` Daniel Hartwig
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Pan @ 2013-03-08  8:39 UTC (permalink / raw)
  To: 13904

6.9.8 Procedures with Setters

A procedure with setter is a special kind of procedure which normally
behaves like any
accessor procedure, that is a procedure which accesses a data
structure. The difference is
that this kind of procedure has a so-called setter attached, which is
a procedure for storing
something into a data structure.
Procedures with setters are treated specially when the procedure
appears in the special
form set! (REFFIXME). How it works is best shown by example.
Suppose we have a procedure called foo-ref, which accepts two
arguments, a value of
type foo and an integer. The procedure returns the value stored at the
given index in the
foo object. Let f be a variable containing such a foo data structure.


Mind the 'REFFIXME'.

Thank you for your time and GREAT JOB.

Best,
Patrick.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-09 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-08  8:39 bug#13904: A bug in guile's newest documentation Patrick Pan
2013-03-09  0:52 ` Daniel Hartwig
2013-03-09 11:24   ` Andy Wingo
2013-03-09 13:16     ` Patrick Pan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).