/[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.7.8.2 by miles, Tue Oct 14 23:10:12 2003 UTC revision 1.7.8.3 by miles, Fri Nov 21 00:35:46 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 floating point numbers; otherwise, two distinct objects are never
82    ``the same''.
83    
84  @item eq  @item eq
85  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 160  This is equivalent to @code{make-hash-ta
160  argument list.  The argument @var{test} specifies the method  argument list.  The argument @var{test} specifies the method
161  of key lookup.  of key lookup.
162    
163  If you want to specify other parameters, you should use  This function is obsolete. Use @code{make-hash-table} instead.
 @code{make-hash-table}.  
164  @end defun  @end defun
165    
166  @node Hash Access  @node Hash Access
# Line 187  value @var{value}.  If @var{key} already Line 188  value @var{value}.  If @var{key} already
188  This function removes the association for @var{key} from @var{table}, if  This function removes the association for @var{key} from @var{table}, if
189  there is one.  If @var{key} has no association, @code{remhash} does  there is one.  If @var{key} has no association, @code{remhash} does
190  nothing.  nothing.
191    
192    @b{Common Lisp note:} In Common Lisp, @code{remhash} returns
193    non-@code{nil} if it actually removed an association and @code{nil}
194    otherwise.  In Emacs Lisp, @code{remhash} always returns @code{nil}.
195  @end defun  @end defun
196    
197  @tindex clrhash  @tindex clrhash
# Line 194  nothing. Line 199  nothing.
199  This function removes all the associations from hash table @var{table},  This function removes all the associations from hash table @var{table},
200  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
201  table.  table.
202    
203    @b{Common Lisp note:} In Common Lisp, @code{clrhash} returns the empty
204    @var{table}.  In Emacs Lisp, it returns @code{nil}.
205  @end defun  @end defun
206    
207  @tindex maphash  @tindex maphash
# Line 255  If two objects @var{obj1} and @var{obj2} Line 263  If two objects @var{obj1} and @var{obj2}
263  @var{obj1})} and @code{(sxhash @var{obj2})} are the same integer.  @var{obj1})} and @code{(sxhash @var{obj2})} are the same integer.
264    
265  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}
266  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,
267  luck, you will encounter two distinct-looking objects that give the same  you will encounter two distinct-looking objects that give the same
268  result from @code{sxhash}.  result from @code{sxhash}.
269  @end defun  @end defun
270    

Legend:
Removed from v.1.7.8.2  
changed lines
  Added in v.1.7.8.3

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