gchp / rustbox

Rust implementation of the termbox library
MIT License
469 stars 48 forks source link

Stable support #39

Closed Yamakaky closed 9 years ago

Yamakaky commented 9 years ago

With these changes, it compiles on stable 1.1. The Send is a problem though.

See #36

ghost commented 9 years ago

Can you determine whether or not RustBox is "Send" when the negative trait is removed?

You can force it to be "Not Send" by adding a PhantomData marker for a type which is "Not Send" This seems to work with stable.

Example

Yamakaky commented 9 years ago

What's cool with rust (and haskell (and cool languages)) is that you always have something to learn ^^

Yamakaky commented 9 years ago

Did you have time to review the changes ?

gchp commented 9 years ago

Sorry for the delay, thanks for this @Yamakaky!