Integer default?
Posted: Wed Jul 07, 2010 11:41 am
I know this is probably already somewhere, but I can't find it, so here goes.
What does int (e.g. when used as List<of int>() ) default to? Is it int32 or int64? Because I received this error earlier today:
As a side note, Cobra dies when I put:
As another side note, when I use the "is" statement, it throws an error:
It seems to think that int32 and int64 are identical, is this purposeful on your part?
What does int (e.g. when used as List<of int>() ) default to? Is it int32 or int64? Because I received this error earlier today:
- Code: Select all
error: Argument 1 of method "add" expects type int?, but the call is supplying type int64.
As a side note, Cobra dies when I put:
List<of int64>()
As another side note, when I use the "is" statement, it throws an error:
error: The left and right sides of the "is" expression can never be identical because of their types ("int64" and "Type"). Maybe you should try "inherits" instead of "is".
It seems to think that int32 and int64 are identical, is this purposeful on your part?