On Mon, 11 Jan 2021, Artur Tarassow wrote:
Am 11.01.21 um 01:29 schrieb Allin Cottrell:
> On Sun, 10 Jan 2021, Sven Schreiber wrote:
>
>> Hi,
>> another minor question before release. Consider this example:
>>
>> <hansl>
>> strings S = defarray("a")
>> print S[i] # no output, no reaction
>> </hansl>
>>
>> I _don't_ expect this to work, that's not the point. But shouldn't
there
>> be some kind of parsing error?
>
> Yes. Fixed.
Thanks for the quick fix, Allin. However, I expected to be able to catch the
error by
<hansl>
strings S = defarray("a")
catch print S[i]
eval $error
</hansl>
but I get the error message:
"
S[i]
The symbol 'i' is undefined"
You're getting a warning, no?
<hansl>
strings S = defarray("a")
catch print S[i]
eval $error
print "still going!"
</hansl>
<output>
? strings S = defarray("a")
? catch print S[i]
S[i]
The symbol 'i' is undefined
? eval $error
2
still going!
</output>
Allin