emacs-devel
[Top][All Lists]
Advanced

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

Re: hash-table-{to, from}-alist


From: Stephen J. Turnbull
Subject: Re: hash-table-{to, from}-alist
Date: Tue, 25 Nov 2008 16:02:38 +0900

Stefan Monnier writes:

 > I don't know what "size" is meant to represent in XEmacs's or CL's use
 > of this representation.  Is it the expected average number of elements
 > in the table?  or the expected max number of elements?  or the current
 > number of elements?

Size is the actual number of elements currently in the table.  In
XEmacs, weak elements that are "no longer there" are not guaranteed to
be removed from the table at any particular time, and I suspect size
is ambiguous for weak tables.  Ask Mike Sperber (XEmacs.org mailbox
"mike") and/or Martin Buchholz ("martin") if you want to know the
details and the design.

In the XEmacs implementation, the parameters of #s(hash-table ...) are
simply passed to make-hash-table, so as Ted says, it's just a hint.





reply via email to

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