From: for.pdv@gmail.com
To: guile-user@gnu.org
Subject: Display on guile
Date: Thu, 05 Mar 2009 08:05:15 +0000 [thread overview]
Message-ID: <00163646c1e6e017c404645aa0f2@google.com> (raw)
[-- 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 --]
next reply other threads:[~2009-03-05 8:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-05 8:05 for.pdv [this message]
2009-03-05 14:47 ` Display on guile 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00163646c1e6e017c404645aa0f2@google.com \
--to=for.pdv@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).