Port ID-based channels.

This commit is contained in:
Eric Holk 2011-08-09 16:07:49 -07:00
parent 04af99ecb0
commit 39b16077bb
9 changed files with 96 additions and 7 deletions

View file

@ -1,3 +1,10 @@
// FIXME: this test is xfailed until sending strings is legal again.
//xfail-stage0
//xfail-stage1
//xfail-stage2
//xfail-stage3
use std;
import std::task;
import std::comm;

View file

@ -32,6 +32,8 @@ fn test_vec() {
}
fn test_str() {
// FIXME: re-enable this once strings are unique and sendable
/*
let po = comm::mk_port();
let ch = po.mk_chan();
let s0: str = "test";
@ -42,6 +44,7 @@ fn test_str() {
assert (s1.(1) as u8 == 'e' as u8);
assert (s1.(2) as u8 == 's' as u8);
assert (s1.(3) as u8 == 't' as u8);
*/
}
fn test_tag() {