[Info-vax] VAX Common Lisp
Arne Vajhøj
arne at vajhoej.dk
Tue Oct 25 19:38:48 EDT 2022
On 10/24/2022 8:50 PM, Dave Froble wrote:
> I don't know anything about LISP, and I don't know if a process image is
> re-startable. Seems to me there might be a bit more to it.
If the data being the context are isolated then VMS
does have a few relevant features.
Basic (!) example:
$ type data.bas
map (blk) integer accu
$ type sum.bas
program sum
%include "data.bas"
declare integer v
v = -1
while v <> 0
input v
accu = accu + v
next
print "sum = ", accu
end program
$ bas sum
$ link sum
$ run sum
1
2
3
0
sum = 6
$
$ run sum
1
2
3
0
sum = 6
$
$ run sum
1
2
3
0
sum = 6
$
[something]
$ type data.bas
map (blk) integer accu
$ type sum.bas
program sum
%include "data.bas"
declare integer v
v = -1
while v <> 0
input v
accu = accu + v
next
print "sum = ", accu
end program
$ bas sum
$ link sum + hack/opt ! <---- note the small change
$ run sum
1
2
3
0
sum = 6
$
$ run sum
1
2
3
0
sum = 12
$
$ run sum
1
2
3
0
sum = 18
:-)
Explanation in next post.
Arne
More information about the Info-vax
mailing list