This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: struct interface
- To: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>
- Subject: Re: struct interface
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Thu, 6 Apr 2000 18:00:39 +0200 (MEST)
- cc: Michael Livshin <cmm at verisity dot com>, clark dot mcgrew at sunysb dot edu, Guile Mailing List <guile at sourceware dot cygnus dot com>
On 6 Apr 2000, Mikael Djurfeldt wrote:
> I don't want to introduce complexity in the user interface. One
> should be able to write things like:
>
> struct foo {
> char c;
> SCM s;
> }
>
> and rely on that this will work whatever architecture you're running
> on.
Ahem, what happens if the user creates such a structure on the stack as a
local variable? Will the stack scanner of the conservative gc be able to
find the reference?
This is obviously not a problem of some future changes to guile, but may
already be today.
Best regards
Dirk Herrmann