[TUHS] PL/I stuff - was: Book Recommendation

Steve Nickolas usotsuki at buric.co
Fri Nov 26 04:15:02 AEST 2021


On Thu, 25 Nov 2021, Paul Winalski wrote:

> 2. The DEFAULT statement.  This was Forran's IMPLICIT on steroids.  It
> let you say things like "data items with names beginning with A-G are
> decimal, I-N are binary, and O-Z are decimal".  There could also be
> overlap between DEFAULT declarations.  So in addition to the rule I
> just mentioned, you could say "A-J are fixed point and K-Z are
> floating point."  With both of these rules in effect, identifier FOO
> would be implicitly "fixed decimal", J would be "fixed biary, and KOOL
> would be "float binary".

This reminds me of DEFINT, DEFSNG, DEFDBL, DEFSTR in MBASIC and its 
descendants and DEFLNG in QBASIC.  A lot of QBASIC code used "DEFINT A-Z" 
for a slight speed boost.

(Not sure if these work in the Xenix version of MBASIC)

-uso.


More information about the TUHS mailing list