/[emacs]/emacs/lispref/hash.texi
ViewVC logotype

Diff of /emacs/lispref/hash.texi

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

revision 1.10 by miles, Mon Sep 1 15:45:41 2003 UTC revision 1.11 by teirllm, Sun Nov 9 04:44:28 2003 UTC
# Line 76  alternatives: Line 76  alternatives:
76    
77  @table @code  @table @code
78  @item eql  @item eql
79  Keys which are numbers are ``the same'' if they are equal in value;  Keys which are numbers are ``the same'' if they are @code{equal}, that
80  otherwise, two distinct objects are never ``the same''.  is, if they are equal in value and either both are integers or both
81    are floats; otherwise, two distinct objects are never ``the same''.
82    
83  @item eq  @item eq
84  Any two distinct Lisp objects are ``different'' as keys.  Any two distinct Lisp objects are ``different'' as keys.
# Line 158  This is equivalent to @code{make-hash-ta Line 159  This is equivalent to @code{make-hash-ta
159  argument list.  The argument @var{test} specifies the method  argument list.  The argument @var{test} specifies the method
160  of key lookup.  of key lookup.
161    
162  If you want to specify other parameters, you should use  This function is obsolete. Use @code{make-hash-table} instead.
 @code{make-hash-table}.  
163  @end defun  @end defun
164    
165  @node Hash Access  @node Hash Access
# Line 187  value @var{value}.  If @var{key} already Line 187  value @var{value}.  If @var{key} already
187  This function removes the association for @var{key} from @var{table}, if  This function removes the association for @var{key} from @var{table}, if
188  there is one.  If @var{key} has no association, @code{remhash} does  there is one.  If @var{key} has no association, @code{remhash} does
189  nothing.  nothing.
190    
191    @b{Common Lisp note:} In Common Lisp, @code{remhash} returns
192    non-@code{nil} if it actually removed an association and @code{nil}
193    otherwise.  In Emacs Lisp, @code{remhash} always returns @code{nil}.
194  @end defun  @end defun
195    
196  @tindex clrhash  @tindex clrhash
# Line 194  nothing. Line 198  nothing.
198  This function removes all the associations from hash table @var{table},  This function removes all the associations from hash table @var{table},
199  so that it becomes empty.  This is also called @dfn{clearing} the hash  so that it becomes empty.  This is also called @dfn{clearing} the hash
200  table.  table.
201    
202    @b{Common Lisp note:} In Common Lisp, @code{clrhash} returns the empty
203    @var{table}.  In Emacs Lisp, it returns @code{nil}.
204  @end defun  @end defun
205    
206  @tindex maphash  @tindex maphash
# Line 255  If two objects @var{obj1} and @var{obj2} Line 262  If two objects @var{obj1} and @var{obj2}
262  @var{obj1})} and @code{(sxhash @var{obj2})} are the same integer.  @var{obj1})} and @code{(sxhash @var{obj2})} are the same integer.
263    
264  If the two objects are not equal, the values returned by @code{sxhash}  If the two objects are not equal, the values returned by @code{sxhash}
265  are usually different, but not always; but once in a rare while, by  are usually different, but not always; once in a rare while, by luck,
266  luck, you will encounter two distinct-looking objects that give the same  you will encounter two distinct-looking objects that give the same
267  result from @code{sxhash}.  result from @code{sxhash}.
268  @end defun  @end defun
269    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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