make-struct critical section throw

2007-02-12 Thread Kevin Ryde
Another error thrown from within an SCM_CRITICAL_SECTION_START, (define vv (make-vtable-vtable "" 0)) (define v (make-struct vv 0 (make-struct-layout "uw"))) (make-struct v 0 'x) => abort scm_make_struct has a critical section around the struct initialization, but

struct tail array, compare and segv

2007-02-12 Thread Kevin Ryde
Brought across from bug-guile ... [EMAIL PROTECTED] (Ludovic Courtès) writes: > > Actually, `scm_i_struct_equalp ()' should also compare the "tail > elements" (when there are tail elements), Is it as easy as using getting the size (of each) from "scm_struct_i_n_words", instead of just using the l

make-vtable

2007-02-12 Thread Kevin Ryde
I made a bit of a start trying to improve the structures section of the manual, I always found it pretty hard to follow. One big stumbling block for me was vtables, but I now see if you want to make a struct you have to make a vtable vtable, and from that a vtable, and only then your struct. Seem