Hello, On Mon 12 Jul 2010 04:20, Noah Lavine <noah.b.lav...@gmail.com> writes:
> It seems from the code that scm_c_make_structv(vtable, ntail, ninit, > inits) is the main function for creating structs. I'm assuming that > ntail is the number of elements in the tail array of the struct Yes. Avoid tail arrays if you can, they are confusing and a bad interface. > ninit > is the total number of elements I want to init, and inits is an array > containing the initial values. Is this correct? Yep. > Also, if I make a struct in this way, can I then do > SCM_STRUCT_SLOT_REF(struct, n) to get at it, where n=0 is the first > slot? You can indeed, though this does no bounds checking. Sorry for the undocumented state of things; patches to fix that most welcome! ;) Andy -- http://wingolog.org/