1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
guile/doc/ref/deprecated.texi
2003-07-09 22:05:43 +00:00

33 lines
1.2 KiB
Text

@page
@node Deprecated
@chapter Deprecated
The features and functions described in this chapter are considered
obsolete and should not be used by new programs. They're retained for
compatibility with past versions of Guile.
@deffn {Scheme Procedure} substring-move-left! str1 start1 end1 str2 start2
@deffnx {Scheme Procedure} substring-move-right! str1 start1 end1 str2 start2
These functions are aliases for @code{substring-move!} and calls to
them can simply be replaced by @code{substring-move!} (@pxref{String
Modification}.)
In the past, if @var{str1} and @var{str2} were the same string, it was
necessary to call @code{substring-move-left!} if the move was to the
left (@math{@var{start2} < @var{start1}}), or call
@code{substring-move-right!} if the move was to the right
(@math{@var{start2} > @var{start1}}). @code{substring-move!} is now
able to do both.
@end deffn
@deftypefn {C Function} void scm_remember (SCM *ptr)
Create a reference to the object at @var{ptr}, so it's certain to be
present on the stack and hence won't be freed by the garbage
collector.
This function has been superceded by @code{scm_remember_upto_here_1}
(which takes an object, not a pointer to one), @xref{Remembering
During Operations}.
@end deftypefn