unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Hash-tables containing references to hash-tables
@ 2009-11-23 11:12 Nordlöw
  2009-11-23 12:41 ` tomas
  2009-11-23 14:10 ` Pascal J. Bourguignon
  0 siblings, 2 replies; 3+ messages in thread
From: Nordlöw @ 2009-11-23 11:12 UTC (permalink / raw)
  To: help-gnu-emacs

Is it possible for a hash-table to contain a *reference* to another
hash-table, similar to how we can build arbitrary graphs using conses/
lists and setf?
If so how? If not, is there reason for being so or is it just an emacs
todo?

If we have
  (puthash parent-key (make-hash-table : size CHILD-SIZE) parent-hash)
then I want
  (gethash parent-key parent-hash)
to return a *reference* to hash-table contained in parent-hash.

I already have a working code for this but I am uncertain how this
will perform when CHILD-SIZE is really large.

/Nordlöw


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-23 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23 11:12 Hash-tables containing references to hash-tables Nordlöw
2009-11-23 12:41 ` tomas
2009-11-23 14:10 ` Pascal J. Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).