guile-devel
[Top][All Lists]
Advanced

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

SCM_STRING_CHARS is deprecated. See the manual for alternatives.


From: Bruce Korb
Subject: SCM_STRING_CHARS is deprecated. See the manual for alternatives.
Date: Wed, 09 Aug 2006 20:57:58 -0700
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Hi,

Um.  I did.  This is all I find:

-- Macro: char * SCM_STRING_CHARS (SCM X)
-- Macro: char * SCM_SYMBOL_CHARS (SCM X)
    Return a pointer to the characters of X.  The result is undefined
    if X is not a symbol or string, respectively.

  There are also a few magic values stuffed into memory before a
symbol's characters, but you don't want to know about those.  What
cruft!

  Note that `SCM_VECTOR_BASE', `SCM_STRING_CHARS' and
`SCM_SYMBOL_CHARS' return pointers to data within the respective
object.  Care must be taken that the object is not garbage collected
while that data is still being accessed.  This is the same as for a
smob, *Note Remembering During Operations::.

==================================

* SCM_STRING_CHARS:                      Vector Data.         (line  36)





reply via email to

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