This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: mod_guile design problems
Chris Bitmead <cbitmead@ozemail.com.au> writes:
> Doesn't the request_rec become invalid each time the call-back returns?
> Even though you may get several callbacks with the same request_rec, if
> you assume that it has gone invalid each time the call-back returns
> you'd be ok. Does this solve it?
Yes it (sort-of) does, thanks for pointing this out.
What i didn't like on this solution is the fact that the user
can't store the request_rec to retrieve some information
lateron. I think i'll combine the two approaches:
I'll make a copy of the request_rec for guile to use. When the
callback returns, i'll mark the smob "read-only" and copy any
changed data back to the original request_rec.
-forcer
--
((email . "forcer@mindless.com") (www . "http://forcix.cx/")
(irc . "forcer@#StarWars (IRCnet)") (gpg . "/other/forcer.gpg"))