This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::to_str::*; | |
pub trait Component : Clone { | |
} | |
#[deriving(Clone)] | |
pub struct TextRenderable { | |
sigil: char, | |
fg: uint, | |
bg: uint, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn works() { | |
let (port, chan): (Port<int>, Chan<int>) = stream(); | |
do spawn { | |
chan.send(42); | |
} | |
println(port.recv().to_str()); | |
} |