Re: a return to struct madness?

[email protected] Wed, 29 Dec 2004 22:12:20 -0500
Newsgroups gmane.lisp.uffi.devel
Message-ID <[email protected]>
On Wed, Dec 29, 2004 at 01:12:40PM -0700, Kevin Rosenberg wrote:
> Thanks for the sample code. I've never tried allocating structures on
> the stack like that. Sounds like you have a reasonable work-around.

Yeah, now that I have my OpenMCL gaffe sorted out, I'm much less
concerned about whether my workaround ends up in UFFI or not; at least
until I get another lisp compiler to test my projects on.

> I suppose the best that UFFI could do is provide an alternate
> with-foreign-object macro that did not use alien:addr and then provide
> and document a method of using those objects using a UFFI wrapper
> around alien:alien-sap. It's not a small undertaking, but if you felt
> strongly about providing an API like this, I'd be glad to review
> patches.

I think that what I'll do is continue to think about it, and when I
start working on another project that requires the same workaround (such
as, if I go back to some work I was doing with CL-SDL), I'll make a few
attempts at this.  I'd like to take this approach as I think I need more
perspective on the issue to do something really usable; I had initially
formulated my work-around as an UFFI patch, but later decided it was
much cleaner just to keep it separate.

And, for the moment, if anyone out there is interested in this same
issue, I welcome their input.

Cheers.

-- 
Julian Squires