Changes between Version 1 and Version 2 of Ticket #337, comment 3
- Timestamp:
- Apr 15, 2011, 1:51:38 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #337, comment 3
v1 v2 2 2 - if an object does not have a type (i.e given as an untyped constant) 3 3 the interpreter has to guess, and it guesses 'int' for 1 etc.(and we do not want to change this) 4 - and what is the int 1 divided by the int (in int): 0.4 - and what is the int 1 divided by the int 3(in int): 0. 5 5 But you can simply forbid / for int! This has nice consequences: 1/2 yields 1/2 or 16002 or an error message (DO WE REALLY WANT THIS?) and it would break a lot of the libraries. 6 6 - Or introduce a default field outside of polynomial coefficient just for printing 1/2 ?