On Sep 30, 2011, at 6:31 AM, Matthew Flatt wrote: > At Fri, 30 Sep 2011 09:21:42 -0400, Eli Barzilay wrote: >> A few minutes ago, Kevin Tew wrote: >>> place-channel-put is not blocking. >> >> So "channel" in the name is not a good choice... > > We use "channel" for asynchronous channels, too, such as > `racket/asynch-channel'. Since all place channels are asynchronous, I > think it would be redundant to include `async' in the name.
I see that it's not blocking... there's something else fishy going on, though.
This program:
#lang racket
(define (main)
(define p
(place ch
(thread (lambda () (place-channel-put ch 'letter-to-myself)))
(define result (place-channel-get ch))
(printf "got a result: ~s\n" result)))
3)
...doesn't print anything out. This suggests that place-channels are unlike
regular ones, in that they refer to a different channel when used with
channel-put than they do when used with channel-get. I'm not sure how I would
clarify the docs here.
John
smime.p7s
Description: S/MIME cryptographic signature
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev

