/[guile]/guile/guile-core/doc/ref/scheme-data.texi
ViewVC logotype

Diff of /guile/guile-core/doc/ref/scheme-data.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by kryde, Tue Sep 2 23:55:16 2003 UTC revision 1.37 by kryde, Tue Sep 2 23:57:49 2003 UTC
# Line 2743  code.  The @code{gensym} primitive meets Line 2743  code.  The @code{gensym} primitive meets
2743  @deffnx {C Function} scm_gensym (prefix)  @deffnx {C Function} scm_gensym (prefix)
2744  Create a new symbol with a name constructed from a prefix and a counter  Create a new symbol with a name constructed from a prefix and a counter
2745  value.  The string @var{prefix} can be specified as an optional  value.  The string @var{prefix} can be specified as an optional
2746  argument.  Default prefix is @samp{ g}.  The counter is increased by 1  argument.  Default prefix is @samp{@w{ g}}.  The counter is increased by 1
2747  at each call.  There is no provision for resetting the counter.  at each call.  There is no provision for resetting the counter.
2748  @end deffn  @end deffn
2749    
2750  The symbols generated by @code{gensym} are @emph{likely} to be unique,  The symbols generated by @code{gensym} are @emph{likely} to be unique,
2751  since their names begin with a space and it is only otherwise possible  since their names begin with a space and it is only otherwise possible
2752  to generate such symbols if a programmer goes out of their way to do  to generate such symbols if a programmer goes out of their way to do
2753  so.  The 1.8 release of Guile will include a way of creating  so.  Uniqueness can be guaranteed by instead using uninterned symbols
2754  symbols that are @emph{guaranteed} to be unique.  (@pxref{Symbol Uninterned}), though they can't be usefully written out
2755    and read back in.
2756    
2757    
2758  @node Symbol Props  @node Symbol Props

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26