This is the mail archive of the guile@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: mod_guile design problems


> 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


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