Posted By
gerliczer on 2015-10-23 01:42:46
| Re: Commodore Basic's oddnesses
@Litwr What natural logic? I'm doing programming work in C++. My logic dictates that a FOR should have any kind of index. So what? The fact that your needs would be better met with integer cycle index doesn't mean that the logic the implementers were adhering to is wrong. They probably decided to use only float because it covers all numerical values in Commodore BASIC. It must have been also an implementation decision that FOR doesn't check for invalid repeat conditions.
|