Bug #27
Constant number can't be cast to a Word64 or Word128
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Compiler | |||
Target version: | 1.8 | |||
Platform: | Triage Stage: | |||
Resolution: | fixed |
Description
It's currently impossible to write something like this :
... with w1 = (Word64)14, ...
even with a bigger number (64 bits) than 14.
Compiler tells us that '14' can't be a Word64 but only a Word4 to Word32, Int32, float or Nat.
History
#1
Updated by Alain Prouté over 17 years ago
- Status changed from New to Assigned
It was just not yet done. Comming soon.
#2
Updated by Alain Prouté about 17 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed
I think it's fixed: see library/tests/system/wordXX.unit_test.anubis where there are plenty of examples of this case.