[Info-vax] DCL Integer Overflow
Arne Vajhøj
arne at vajhoej.dk
Wed Jul 12 19:46:36 EDT 2017
On 7/12/2017 8:33 AM, VAXman- at SendSpamHere.ORG wrote:
> In article <ok3r10$ka2$1 at gioia.aioe.org>, =?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne at vajhoej.dk> writes:
>> On 7/11/2017 11:11 AM, VAXman- at SendSpamHere.ORG wrote:
>>> In bash, it's:
>>>
>>> Array[i][j] = x
>>>
>>> Not all that much of a deal in DCL:
>>>
>>> Array'i''j' = x
>>
>> Well, since it is not builtin syntax, then it is possible
>> to get wrong. And in fact as Hoff already pointed out then
>> the above code has got it wrong.
>>
>> It can be fixed, but the fix is based on convention
>> not language syntax, so two developers may pick
>> different conventions resulting in problems.
>>
>> And there are some technical problems as well, operations
>> as simple as:
>> * iterate over the array
>> * specifying the array as an argument to a call
>> are not easy.
>
> What I can not fathom is why anyone would be using DCL or, for that matter,
> any interpreted scripting lingo for doing such things?
A lot of stuff get done in scripting languages.
I find arrays useful in scripting languages.
DCL is not the right language for something like this.
But I can not see a problem doing it in Python or
JavaScript.
Arne
More information about the Info-vax
mailing list