unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Eric Hanchrow <offby1@blarg.net>
Subject: no output from ice-9 `format' after `make-thread'
Date: 02 Nov 2002 14:59:40 -0800	[thread overview]
Message-ID: <87d6pn1stf.fsf@blarg.net> (raw)


Guile 1.6.0
Linux offby1 2.4.18 #1 Wed Aug 14 22:07:05 PDT 2002 i686 unknown

configured with `--prefix=/usr/local/guile1.6-threads --with-threads'

buildstamp = Thu Oct 31 06:05:53 PST 2002
LIBS =  -lqthreads -lpthread -lcrypt -lm 
libguileinterface = 15:0:3
guileversion = 1.6.0
pkgincludedir = /usr/local/guile1.6-threads/include/guile
pkglibdir = /usr/local/guile1.6-threads/lib/guile
pkgdatadir = /usr/local/guile1.6-threads/share/guile
includedir = /usr/local/guile1.6-threads/include
mandir = /usr/local/guile1.6-threads/man
infodir = /usr/local/guile1.6-threads/info
libdir = /usr/local/guile1.6-threads/lib
localstatedir = /usr/local/guile1.6-threads/var
sharedstatedir = /usr/local/guile1.6-threads/com
sysconfdir = /usr/local/guile1.6-threads/etc
datadir = /usr/local/guile1.6-threads/share
libexecdir = /usr/local/guile1.6-threads/libexec
sbindir = /usr/local/guile1.6-threads/sbin
bindir = /usr/local/guile1.6-threads/bin
exec_prefix = /usr/local/guile1.6-threads
prefix = /usr/local/guile1.6-threads
top_srcdir = top_srcdir_absolute@
srcdir = /usr/local/src/guile-1.6.0/libguile

unmodified source

no deviations from the standard procedure for installing Guile

here's a snippet that demonstrates the behavior I'm wondering about:

    (use-modules (ice-9 threads))
    (use-modules (ice-9 format))
    (for-each
     (lambda (sym)
       (make-thread
        (lambda ()
          (display (format #f "Hey you: ~A~%" sym))
          )))
     (list 'bob 'sam))

Invoke the snippet with `guile -s snippet.scm'.  Note the total lack
of output.

Compare this to what happens if you comment out `(use-modules (ice-9
format))', thus presumably bringing in a different `format' procedure:
you see output as I'd expect, namely

    Hey you: bob
    Hey you: sam

Also compare this to what happens if you eliminate the call to
`make-thread', like this:

    (use-modules (ice-9 format))
    (for-each
     (lambda (sym)
       (display (format #f "Hey you: ~A~%" sym)))
     (list 'bob 'sam))

This, too, produces the output shown above.

The bug, or at least my confusion, is that the first version produces
no output.

-- 
PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5  C8BD 6337 0041 C01C 5276


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


             reply	other threads:[~2002-11-02 22:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-02 22:59 Eric Hanchrow [this message]
2002-11-03  0:00 ` no output from ice-9 `format' after `make-thread' Marius Vollmer
2002-11-04 18:52   ` Neil Jerram
2002-11-17 15:00     ` Marius Vollmer

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=87d6pn1stf.fsf@blarg.net \
    --to=offby1@blarg.net \
    /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).