unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Display on guile
@ 2009-03-05  8:05 for.pdv
  2009-03-05 14:47 ` Linas Vepstas
  0 siblings, 1 reply; 6+ messages in thread
From: for.pdv @ 2009-03-05  8:05 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

hi Group,

I executed these commands..

$ guile
guile> (define mc (cons 'a 'b))
guile> mc
(a . b)
guile> (define ml (list 1 2 mc))
guile> ml
(1 2 (a . b))
guile> (list mc 1 2 3)
((a . b) 1 2 3)
guile> (define mh (make-hash-table 2))
guile> (hashq-create-handle! mh 'one mc)
(one a . b)
guile> (hashq-create-handle! mh 'two ml)
(two 1 2 (a . b))
guile> mh
#(((two 1 2 (a . b)) (one a . b)) ())
guile> (use-modules (ice-9 pretty-print))
guile> (pretty-print mh)
#(((two 1 2 (a . b)) (one a . b)) ())
guile>

I was expecting handle:'one of hash:mh to be printed in parens as
#(((two 1 2 (a . b)) (one (a . b))) ())

Why is behaviour of print for a hash different from others?
Am I missing anything?

--regards, Praveen

[-- Attachment #2: Type: text/html, Size: 957 bytes --]

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

end of thread, other threads:[~2009-03-10  3:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-05  8:05 Display on guile for.pdv
2009-03-05 14:47 ` Linas Vepstas
2009-03-05 16:08   ` Praveen D V
2009-03-05 16:11     ` Praveen D V
2009-03-05 18:27     ` Linas Vepstas
2009-03-10  3:41       ` for.pdv

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).