This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: mod_guile design problems
- To: guile@cygnus.com
- Subject: Re: mod_guile design problems
- From: Eric Moore <moore@lovecraft.chem.cmu.edu>
- Date: Tue, 29 Jun 1999 11:39:08 -0400
> The only solution i see so far is to make a copy of the
> request_rec structure and pass the copy to the Scheme code. When
> it returns, i have to copy the values back, and free the copied
> request_rec using the normal smob guides.
Or you could make a smob wrapper for the pointer that checks to see if the
pointer is valid, and then on return, set something that makes it invalid.
(possibly even just setting the accessor function to one that throws an error.)
If you want an example or something, ask, I just don't have any smob
code handy to write one :)
-Eric