diff options
author | Ori Bernstein <ori@eigenstate.org> | 2014-02-10 23:26:32 -0500 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2014-02-10 23:26:32 -0500 |
commit | 68b18a7fba8313ad5b1d8b4c6be61e3b8b126304 (patch) | |
tree | a30c41e3637cd99fd50eefbff36cc617718fdb30 /libstd/extremum.myr | |
parent | c158da43321893956e4be405ed04af37f86259fa (diff) | |
download | mc-68b18a7fba8313ad5b1d8b4c6be61e3b8b126304.tar.gz |
Do some sanitization on traits.
- Remove tctest: all tests now take a boolean.
- Rename traits to more sensible names:
tcnum => numeric
tcint => integral
tcfloat => floating
tcidx => indexable
tcslice => sliceable
- Remove duplicate trait setting.
We were setting traits twice in some places, adding
ones that didn't belong, which was making pointers look
indexable.
Diffstat (limited to 'libstd/extremum.myr')
-rw-r--r-- | libstd/extremum.myr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstd/extremum.myr b/libstd/extremum.myr index 5d63acd..c4998da 100644 --- a/libstd/extremum.myr +++ b/libstd/extremum.myr @@ -1,6 +1,6 @@ pkg std = - generic min : (a : @a::tcnum, b : @a::tcnum -> @a::tcnum) - generic max : (a : @a::tcnum, b : @a::tcnum -> @a::tcnum) + generic min : (a : @a::numeric, b : @a::numeric -> @a::numeric) + generic max : (a : @a::numeric, b : @a::numeric -> @a::numeric) ;; generic min = {a, b |