Bug #27

Constant number can't be cast to a Word64 or Word128

Added by Anonymous over 17 years ago. Updated about 17 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Alain Prouté% 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.

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux