[TUHS] bas(1) and bs(1) videos including features and use

Dave Horsfall dave at horsfall.org
Thu Jan 21 08:17:30 AEST 2021


On Wed, 20 Jan 2021, M Douglas McIlroy wrote:

> Nice archaeology. Blinded by my distaste for Basic , I never bothered to try
> bs--and should have. Dave has highlighted features that deserve respect.One
> telling example suggests this should be legalized in C:
>         printf("%s\n", {"true", "false"}[1]);

That would evaluate to a constant being printed (it's a direct array 
reference).  Did you mean something like "...[i]" instead?  That would 
indeed be neat...

-- Dave


More information about the TUHS mailing list