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: Marius Vollmer
Subject: Re: Unused third argument of scm_makfromstr
Date: 25 Jun 2001 02:42:49 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Dirk Herrmann <address@hidden> writes:

> 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.

Me too.  The name "makfromstr" is not really very well motivated.
 
> 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

Yes, I like that.
 
> 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.

Yes, but I think that that will be a very big change anyway.  No need
to worry about the consequences of the change we are discussing right
now.



reply via email to

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