>> Louis Krupp wrote: >>> On 6/1/2010 9:40 PM, Ron Shepard wrote: >> ... >>>> You must be thinking of some other language. Other languages do >>>> sometimes do silent conversions to match arguments.
>>> So reals aren't truncated to integers?
>> In argument lists? No, a REAL in a CALL statement for a routine >> expecting an INTEGER will generate a mismatched argument type error (in >> the module during compilation) and a mismatched call if forced to link >> outside of one where a compiler may not be able to tell of the mismatch.
>> -- > To add to what dpb said: If the expected INTEGER is used as a subscript but > a real (or another mismatched type) was passed instead, a prompt SEGFAULT > may be expected.
Likely (given the format of IEEE floating point, for example), but not necessarily (if a high virtual address plus garbage with high-order bits turned on wrap around to a low, valid virtual address).
The same thing would happen in that Other Language with which I'm more familiar.