Ludovic Courtès escreveu:
> Hi,
> 
> [EMAIL PROTECTED] (Ludovic Courtès) writes:
> 
>> I'd like to push the patch within the next few days if nobody complains,
>> alright?
> 
> Done!
> 
> Opinions about making `scm_i_{string,symbol}_chars' internal as well?

Can someone explain to me why accessing the underlying (const char*)
of a string should be internal? If you are writing C++, doing

  const char* ptr = scm_i_string_chars(scmval);
  string x(ptr);

is the most straightforward and efficient way to create a string.
Using the API incurs an additional malloc, memcpy and free.

-- 
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen



Reply via email to