[Info-vax] VMS Software Bootcamp 2024
Craig A. Berry
craigberry at nospam.mac.com
Sat Sep 14 18:45:33 EDT 2024
On 9/14/24 5:33 PM, Lawrence D'Oliveiro wrote:
> On Fri, 13 Sep 2024 20:02:20 -0400, Arne Vajhøj wrote:
>
>> But one can do some things:
>> * split logic up in subroutines
>
> Does it have subroutine-local variables?
There are command levels, yes:
$ type foo.com
$ x := "foo"
$ call mysub
$ write sys$output x
$ exit
$ mysub: subroutine
$ x := "bar"
$ write sys$output x
$ endsubroutine
$ @foo
bar
foo
>> * have a convention for how to simulate arrays
>
> I remember doing that with clever string substitution. ;)
It can be done. It's pretty ugly.
More information about the Info-vax
mailing list