[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BDW-GC] "Inlined" storage; `scm_take_' functions
From: |
Ludovic Courtès |
Subject: |
Re: [BDW-GC] "Inlined" storage; `scm_take_' functions |
Date: |
Tue, 01 Sep 2009 10:20:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi,
Mike Gran <address@hidden> writes:
> On Tue, 2009-09-01 at 02:14 +0200, Ludovic Courtès wrote:
[...]
>> The `scm_take_' functions for strings/symbols/bytevectors are now
>> essentially aliases to the corresponding `scm_from_' because we cannot
>> advantageously reuse the provided storage.
>>
>> Should these functions be deprecated or discouraged?
>>
>
> codesearch.google.com says that scm_take_ isn't often used by other
> projects, but, it is used by lilypond. I think that's reason enough to
> leave it in. I'd vote for keeping them and adjusting the docs to say
> something like
>
> Like `scm_from_locale_string' and `scm_from_locale_stringn',
> respectively, but also immediately frees STR after creating
> the Guile string.
>
> Or something like that.
Of course, I meant "keep them but possibly moved into
{discouraged,deprecated}.c". Your doc suggestion looks good to me also.
Thanks,
Ludo'.
- Re: [BDW-GC] "Inlined" storage; `scm_take_' functions,
Ludovic Courtès <=