[Openmcl-devel] HOWTO: Have a foreign structure field point to parent structure

Kevin Rosenberg kevin at rosenberg.net
Sun Sep 29 13:36:43 PDT 2002


Kevin Rosenberg wrote:
> struct astruct {
>   int data;
>   struct astruct* next;
> }

I wonder if this openmcl syntax correct:

(ccl:def-foreign-type nil
  (:struct astruct (next (:* (:struct astruct)))))

Thanks!

--
       Kevin Rosenberg        |  .''`.  ** Debian GNU/Linux **
  http://b9.com/debian.html   | : :' :      The  universal
  GPG signed and encrypted    | `. `'      Operating System
     messages accepted.       |   `-    http://www.debian.org/

_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com
http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel



More information about the Openmcl-devel mailing list