r11214: 2006-10-10 Kevin Rosenberg (kevin@rosenberg.net)
[uffi.git] / doc / ref_aggregate.xml
index 5aa86441135946ce540b3f5896fe97622c63b6ee..c1892648ad5ef60af4fb3d818ce902af752f3fec 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
                "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
-<!ENTITY % myents SYSTEM "entities.xml">
+<!ENTITY % myents SYSTEM "entities.inc">
 %myents;
 ]>
 
@@ -209,13 +209,15 @@ structure. It's type is <constant>:pointer-self</constant>.
       <refsect1>
        <title>Description</title>
        <para>
-         Accesses a slot value from a structure.
+         Accesses a slot value from a structure. This is generalized
+         and can be used with <function>setf</function>.
        </para>
       </refsect1>
       <refsect1>
        <title>Examples</title>
        <screen>
 (get-slot-value foo-ptr 'foo-structure 'field-name)
+(setf (get-slot-value foo-ptr 'foo-structure 'field-name) 10)
        </screen>
       </refsect1>
       <refsect1>
@@ -375,7 +377,7 @@ structure. It's type is <constant>:pointer-self</constant>.
       <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>
-         <function>deref-array</function> <replaceable>array type positon</replaceable> => <returnvalue>value</returnvalue>
+         <function>deref-array</function> <replaceable>array type position</replaceable> => <returnvalue>value</returnvalue>
        </synopsis>
       </refsynopsisdiv>
       <refsect1>