3 ms·
Agreed. I'm not familiar with PDP or VAX Basic, but I did grow up on GFA Basic with its PROCEDURE and FUNCTION. Both could be called by just using their name
by bhauer 4y ago
Agreed. I'm not familiar with PDP or VAX Basic, but I did grow up on GFA Basic with its PROCEDURE and FUNCTION. Both could be called by just using their name without a GOSUB.
PROCEDURE printfoo(bar%)
PRINT "foo: " + bar%
RETURN
FUNCTION double(number%)
RETURN number% * 2
ENDFUNC
' Prints "foo: 8"
printfoo(double(4))
- ChicagoDave 4y agoMicrosoft Professional Development System 7.1 and later Visual Basic for DOS 1.0 had similar language syntax. I had put together a DOSBox VM with PDs installed awhile back. Still have it if you're interested. I built software using PDS professionally back in 1990.
- ChicagoDave 4y agoThe better choice is to fire up MS DOS 3.1 on VirtualBox and download VB for DOS 1.0 and install it (7 floppy images). Takes a but, but it's a solid BASIC syntax and it's the successor to PDS 7.1. To get PDP or VAX BASIC running, you'd need to emulate a PDP with RSTS/E or VAX+VMS and BASIC is built in. There are Raspberry PI images for both. Personally I think SUB ... END SUB and FUNCTION ... END FUNCTION are the clearest syntax.