[Info-vax] DCL Integer Overflow

Arne Vajhøj arne at vajhoej.dk
Tue Jul 11 20:37:53 EDT 2017


On 7/11/2017 11:11 AM, VAXman- at SendSpamHere.ORG wrote:
> In article <841537a9-2fd0-4f8b-b6ff-a2cd022c7683 at googlegroups.com>, osuvman50 at gmail.com writes:
>> On Tuesday, July 11, 2017 at 9:08:50 AM UTC-4, Bob Koehler wrote:
>>> In article <770567ee-5f37-4e67-b128-e3ca20989e98 at googlegroups.com>, osuvman50 at gmail.com writes:
>>>>
>>>> I said clean way, embedding the index in the symbol name is an ugly hack.
>>> And doing a(b(i)) requires intermediate symbols.
>>>
>>>     No, it's a beautiful hack.
>>>
>>>     Now, define "clean".
>>
>> Clean means an array is readily identifiable as an array via declaration (i.e.
>> dimension statement) and not something inferred by examining the usage.  Plus, the
>> less symbol substitution syntax the better (do i need ' here or ''?).
> 
> 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.

Arne






More information about the Info-vax mailing list