<refentry id="get-slot-value">
<refnamediv>
- <refname>def-slot-value</refname>
+ <refname>get-slot-value</refname>
<refpurpose>Retrieves a value from a slot of a structure.
</refpurpose>
<refclass>Macro</refclass>
<title>Examples</title>
<programlisting>
(def-struct ab (a :int) (b :double))
-(allocate-foreign-object 'ab)
+(allocate-foreign-object ab)
=> #<ptr>
</programlisting>
</refsect1>
<refsynopsisdiv>
<title>Syntax</title>
<synopsis>
- <function>def-pointer</function> <replaceable>ptr type</replaceable> => <returnvalue>value</returnvalue>
+ <function>deref-pointer</function> <replaceable>ptr type</replaceable> => <returnvalue>value</returnvalue>
</synopsis>
</refsynopsisdiv>
<refsect1>