libgo patch committed: send on a closed channel panics

Ian Lance Taylor iant@google.com
Wed Mar 23 21:14:00 GMT 2011


The Go language spec has been changed to say that sending on a closed
channel panics.  This patch implements that.  Also, there is no longer
any limit on the number of times a program may receive a value from a
closed channel.  Also, calling close on a closed channel panics.
Bootstrapped and tested on x86_64-unknown-linux-gnu.  Committed to
mainline.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 10776 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110323/489c2ac6/attachment.bin>


More information about the Gcc-patches mailing list