From efae3668570b51fa14483663d1979a6a8a6852fe Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Sun, 15 Apr 2018 19:59:11 +0200 Subject: rename SomeReal to SomeFloat (#7617) * rename SomeReal to SomeFloat * added changelog entry --- lib/system.nim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/system.nim') diff --git a/lib/system.nim b/lib/system.nim index 969527828..3761a35f8 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -105,12 +105,14 @@ type ## type class matching all ordinal types; however this includes enums with ## holes. - SomeReal* = float|float32|float64 + SomeFloat* = float|float32|float64 ## type class matching all floating point number types - SomeNumber* = SomeInteger|SomeReal + SomeNumber* = SomeInteger|SomeFloat ## type class matching all number types +{.deprecated: [SomeReal: SomeFloat].} + proc defined*(x: untyped): bool {.magic: "Defined", noSideEffect, compileTime.} ## Special compile-time procedure that checks whether `x` is ## defined. @@ -128,7 +130,7 @@ when defined(nimalias): TSignedInt: SomeSignedInt, TUnsignedInt: SomeUnsignedInt, TInteger: SomeInteger, - TReal: SomeReal, + TReal: SomeFloat, TNumber: SomeNumber, TOrdinal: SomeOrdinal].} @@ -2171,8 +2173,8 @@ proc max*[T](x, y: T): T = if y <= x: x else: y {.pop.} -proc high*(T: typedesc[SomeReal]): T = Inf -proc low*(T: typedesc[SomeReal]): T = NegInf +proc high*(T: typedesc[SomeFloat]): T = Inf +proc low*(T: typedesc[SomeFloat]): T = NegInf proc clamp*[T](x, a, b: T): T = ## limits the value ``x`` within the interval [a, b] -- cgit 1.4.1-2-gfad0 =2ee9a27be3cd5ccc9e64dd8ea9ad2df68c54ea82'>diff stats
path: root/contributors.txt
blob: d54ec844aecd4ef7f92f5d3b8e760539ecf6663b (plain) (tree)
1
2
3
4
5
6
7
8
9