This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug?


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]