about summary refs log tree commit diff
path: root/src/rt/rust_run_program.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-04-05 22:00:50 -0700
committerbors <bors@rust-lang.org>2013-04-05 22:00:50 -0700
commitbdd2439529c23b4fcd2676d7427c45ca223385ce (patch)
treeb722a99b095de611361906d112ffa5b8d9c71fc2 /src/rt/rust_run_program.cpp
parentf678d63507a779d81810c342dd1bdc828fb983ba (diff)
parentc6949b3669d23a1694b964108f21d5200c985cb5 (diff)
downloadrust-bdd2439529c23b4fcd2676d7427c45ca223385ce.tar.gz
rust-bdd2439529c23b4fcd2676d7427c45ca223385ce.zip
auto merge of #5733 : dbaupp/rust/std-complex-rational, r=thestinger
This adds two generic data types, `Ratio` and `Cmplx` (and some aliases for useful instances, e.g. `Ratio<int>` and `Cmplx<f64>`), and basic arithmetic support, as well as `.to_str` (for both) and `.from_str` (for rational).

The complex number implementation doesn't solve #1284 other than getting something into the libraries, specifically it doesn't even try to address C interop. If the complex part of this gets merged, maybe it's worth closing that issue and reopening more specific issue(s) about the failings.

The implementations can be fleshed out when the numeric traits stabilise (and trait inheritance works).
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions