guile-devel
[Top][All Lists]
Advanced

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

Re: Unused third argument of scm_makfromstr


From: Dirk Herrmann
Subject: Re: Unused third argument of scm_makfromstr
Date: Sat, 23 Jun 2001 00:23:38 +0200 (MEST)

On 22 Jun 2001, Neil Jerram wrote:

> Can we get rid of the unused third argument of scm_makfromstr?  It is
> completely unused, and it complicates the GH->SCM transition
> documentation.

That's fine with me.  However, a better approach might be to introduce a
completely new name and deprecate the old one.

What about the following idea:  In accordance to functions like memcpy and
strcpy, we could use the syllable 'mem' when a pair <char*, size_t> is
used to define a scheme string, and use 'str' for a 0-terminated sequence
of characters.

scm_makfromstr --> scm_mem2string or similar

We should be aware, however, that in a maybe not so far future a switch to
a different string encoding may happen.  That means, that the string
interface is likely to change again at that time.

Best regards,
Dirk Herrmann





reply via email to

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