summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-05 15:50:52 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-11-05 15:50:52 -0700
commit41cb66577c668dac1c83fee512c4eb0501850c8a (patch)
tree9b03f0164253311d871f18205517ff1bc2bb99d4 /txr.1
parent157fd76ee20125f409929b95b768b931268b43cf (diff)
downloadtxr-41cb66577c668dac1c83fee512c4eb0501850c8a.tar.gz
txr-41cb66577c668dac1c83fee512c4eb0501850c8a.tar.bz2
txr-41cb66577c668dac1c83fee512c4eb0501850c8a.zip
Expose slots function.
* struct.c (struct_init): Register slots intrinsic. (slots): Pass correct name string to stype_handle. * txr.1: Slots function documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.114
1 files changed, 14 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index cd44ca68..bc0ea7d7 100644
--- a/txr.1
+++ b/txr.1
@@ -22142,6 +22142,20 @@ isn't bound to a particular object. The binding of
.code slot-name
to a slot in the structure object occurs when the function is called.
+.coNP Function @ slots
+.synb
+.mets (slots << type )
+.syne
+.desc
+The
+.code slots
+function returns a list of all of the slots of struct type
+.metn type .
+
+The
+.meta type
+argument must be a structure type, or else a symbol
+which names a structure type.
.coNP Function @ slotp
.synb
.mets (slotp < type << name )