about summary refs log tree commit diff
path: root/src/lib/uint.rs
AgeCommit message (Collapse)AuthorLines
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-254/+0
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-15Replaced constant functions with actual constants in std and updated testsStefan Plantikow-6/+4
Fixes issue #1165
2011-11-05[Docfixes + feature] lib/uint.rs: Applied review suggesions, took the ↵David Rajchenbach-Teller-9/+61
opportunity to add function loop
2011-11-05uint.rs: added functions div_ceil, div_floor, div_roundDavid Rajchenbach-Teller-0/+23
2011-11-03Disallow writing to function arguments againMarijn Haverbeke-1/+2
Remove implicit copying hack. Closes #1118
2011-10-31Add a char::to_digit functionMatt Brubeck-5/+1
2011-10-31Correct handling of non-numeric chars in parse_bufMatt Brubeck-1/+9
Without this fix, int::parse_buf and uint::parse_buf return incorrect results for any strings that contain non-numeric characters. Fixes #1102.
2011-10-27Remove uint::max/min in favor if math::max/minMatt Brubeck-4/+0
2011-10-27Add documentation to std::uintMatt Brubeck-10/+73
2011-10-27Mark uint add/sub/mul/div/rem functions as pureMatt Brubeck-5/+5
2011-10-21Remove last uses of iterators from stdlibMarijn Haverbeke-3/+2
Issue #1056
2011-10-17[Lib] int.rs, uint.rs: added max_value, min_valueDavid Rajchenbach-Teller-0/+14
2011-10-17[Lib] uint.rs: +min_valueDavid Rajchenbach-Teller-1/+1
2011-10-12Extend the unchecked block stuff to allow unsafe blocks as well.Niko Matsakis-1/+1
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-2/+2
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-6/+6
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-4/+4
2011-08-27Convert std::uint to istrs. Issue #855Brian Anderson-9/+9
2011-08-25Change "pred" to "pure fn" in all libraries and test casesTim Chevalier-6/+6
2011-08-23Resolve a number of FIXMEsBrian Anderson-3/+0
2011-08-20ReformatBrian Anderson-5/+3
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-16Port the stdlib to the expr foo::<T> syntax.Erick Tryzelaar-3/+6
2011-08-16Rename std::ivec to std::vecBrian Anderson-2/+2
2011-08-16Removed trans_comm.rs from the compiler. Updating aio/sio to work with the ↵Eric Holk-0/+4
new chan and port system, started on a networking module for the standard library.
2011-08-12Convert uint::parse_buf to ivecsBrian Anderson-3/+3
2011-07-27Reformat for new syntaxMarijn Haverbeke-59/+56
2011-07-10Add uint::minJesse Ruderman-0/+2
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-0/+2
src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs.
2011-06-21Serialize constraints in types (literal arguments still not supported)Tim Chevalier-6/+6
This involved, in part, changing the ast::def type so that a def_fn has a "purity" field. This lets the typechecker determine whether functions defined in other crates are pure. It also required updating some error messages in tests. As a test for cross-crate constrained functions, I added a safe_slice function to std::str (slice(), with one of the asserts replaced with a function precondition) and some test cases (various versions of fn-constraint.rs) that call it. Also, I changed "fn" to "pred" for some of the boolean functions in std::uint.
2011-06-15Fix a bunch of compile-command lines to use RBUILDGraydon Hoare-1/+1
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-45/+35
2011-06-07rustc: Use a set-based approach to unification; remove ty_bound_param and ↵Patrick Walton-0/+5
ty_local. Sorry, big perf regression; will fix soon.
2011-05-22stdlib: Use if/alt expressions in std::uintBrian Anderson-19/+19
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-0/+107
Except for _task, which is still a keyword.