chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] bind egg and strings


From: Felix
Subject: Re: [Chicken-users] bind egg and strings
Date: Sat, 30 Mar 2013 23:20:32 +0100 (CET)

From: Andrei Barbu <address@hidden>
Subject: Re: [Chicken-users] bind egg and strings
Date: Wed, 27 Mar 2013 15:17:58 -0400

> On Mar 23, 2013 7:56 AM, "Felix" <address@hidden>
> wrote:
>>
>> >
>> > Having to do the static allocation manually all the time when all you
>> > want is an strdup is rather unpleasant.
>> > How about a patch that does both?
>>
>> Thanks, Andrei. I will look at this, perhaps the generated output can
>> be simplifed a little.
> 
> Thanks. Any chance you'll be able to look at this and the other patch to
> bind sometime soon? It's been a while and this is holding a bunch of code
> back.

Hello!

I've applied the 64-bit fix and partially added the patch regarding
c-string/char-ptrs in mutable struct slots. I'm somehow reluctant to
add the "...*" accessor variant - I fear that this adds a lot of
redundant bindings that are never used in most cases. By prefixing a
slot type with "___pointer" one always has the option to treat a char*
as a pointer object instead of a c-string. If you can live with that,
I can tag a new version of the bind egg. Otherwise we should discuss
this some more. I don't recall the whole discussion so it is possible
that I have overlooked something important.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]