[EMAIL PROTECTED] (Ludovic Courtès) writes:
>
>      (let* ((vtable (make-vtable-vtable "pr" 0))
>             (s1     (make-struct vtable 0 "hello"))
>             (s2     (make-struct vtable 0 "hello")))
>        ;; S1 and S2 are both "regular" one-field structs.

I know the "values" struct is doing exactly this, but I suspect it's
abusing the vtable system.  I suspect that what scm_init_stacks() in
stacks.c is doing is normal (if there's such a thing as "normal").

> So I think it's even more confusing than it seems.  ;-)

Yep, very confusing :-).

> I'd say that `make-vtable-vtable' is inappropriately named and should
> really be `make-vtable'.  Does that make sense?

Perhaps we have an expert lurking here, but I think make-vtable-vtable
does in fact do what its name suggests: make a vtable for creating
vtables.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to