On 2008-04-22 09:36:41 -0300, Gary Scott <garylscott@[EMAIL PROTECTED]
> said:
> Gordon Sande wrote:
>
>> On 2008-04-22 07:09:19 -0300, SimonG <simon@[EMAIL PROTECTED]
> said:
>>
>>> On Apr 22, 10:12 am, "FX" <coud...@[EMAIL PROTECTED]
> wrote:
>>>
>>>>> I expected the Intel result but perhaps the standard is ambiguous on
>>>>> this. Is this a g95 bug?
>>>>
>>>>
>>>> I'd have the same expectation that you have, so I guess there's a
>>>> bugre****t to make (or at least feature request, as lots of other
>>>> compilers behave the other way).
>>>>
>>>>> A second question: how do I enter a '/' character?
>>>>
>>>>
>>>> Well, you have a .co.uk address, so the '/' key should be on the left
of
>>>> your right ****ft key ;-)
>>>>
>>>> Hum, more seriously, you need to change your read's into:
>>>>
>>>> read(5,'(a)') buff
>>>> read(buff,'(f20.0)',err=900) x
>>>>
>>>> (Oh, and doing that fixes the issue with g95, apparently.)
>>>>
>>>> --
>>>> FX
>>>
>>>
>>> Yes, making that change does alter the behaviour - the g95 version
>>> works as required but the Intel version now interprets '+' as a number
>>> (as well as '.', ',' and '-'): is that an Intel bug?
>>
>>
>> Extensions! Treating "+","-" and "." as short forms of zero is a fairly
>> common extension for numerical input routines. The rationalization is
that
>> the missing digits are being treated as zero. Sometimes it leads to
foolish
>> things like repeated signs being treated as an extra zero. The "," is
likely
>> to be treated as a terminator and results in a missing field of zero.
These
>> extensions appear to be clever (where clever is actually a swear word
when
>> describing software!) but can quickly become very tiring when they
result
>> in obscure lingering wounds to the feet.
>>
>> Such extensions are surely baggage that Digital/Compaq/Intel has picked
up
>> over time.
>
> Or invented...
>
> <snip>
Having seen these clever extensions in other settings I would be more
inclined
to believe they were user requests. Or at least a request by sales when a
new
sale got hung up on the absense of the extension during the
demonstration phase.
Much easier if the customer can re****t zero glitches rather than having to
fix some number of their own past clevernesses.


|