This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Bug?
- To: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Subject: Re: Bug?
- From: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Date: 06 Apr 2000 00:51:45 +0200
- Cc: Guile Mailing List <guile at sourceware dot cygnus dot com>
- Cc: djurfeldt at nada dot kth dot se
- References: <Pine.LNX.4.21.0004051831350.4669-100000@marvin.ida.ing.tu-bs.de>
Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:
> In objects.c line 458 looks as follows:
> pl = SCM_STRUCT_DATA (class)[scm_vtable_index_layout];
> In contrast, struct.h holds the following line:
> #define SCM_STRUCT_LAYOUT(X) (SCM_STRUCT_VTABLE_DATA(X)[scm_vtable_index_layout])
>
> This looks suspicious to me: In struct.h, the result of
> SCM_STRUCT_VTABLE_DATA is accessed at indexscm_vtable_index_layout, in
> objects.c it is the result of SCM_STRUCT_DATA.
No bug: The STRUCT_DATA of the class *is the VTABLE_DATA of the instance.
Thanks for being observant.