Mercurial > projects > dang
diff sema/DType.d @ 119:c0b531362ca6
Non compileing commit. Work on floating points and casts
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Sun, 25 May 2008 19:13:07 +0200 |
parents | 54585ad7e426 |
children | 7d0898f77685 |
line wrap: on
line diff
--- a/sema/DType.d Sun May 25 18:24:16 2008 +0200 +++ b/sema/DType.d Sun May 25 19:13:07 2008 +0200 @@ -268,6 +268,15 @@ super(name, bits, false); } + override bool hasImplicitConversionTo(DType that) + { + if (auto o = cast(DInteger)that) + return true; + if (auto o = cast(DReal)that) + return true; + return false; + } + override bool isReal() { return true; } override DReal asReal() { return this; } }