On Wed, 2 Sep 2020 at 17:35, Seymour J Metz <[email protected]> wrote: > > Knowingly means knowingly; regardless of the user's sophistication or lack > thereof; no reasonable person would expect the user to avoid unknown > keywords. OTOH, a polite heads up would be reasonable. > > However, it might be nice to have a compiler option to flag overloading of > keywords. I wouldn't call such an option pedantic, and there might be lots of > other legal constructs that you would want a message for.
It depends greatly on the way strings that happen to be keywords are used not as keywords. Any beginner can write if then = if then if = end; else do = if; (or worse) just to show that yes, PL/I really doesn't have reserved words. But I see little if anything wrong with put = '1'b; ... If put then put skip list (...); else select = select + 1; or a simple example from the book that has and requires no comment about Area not being a keyword: Area = (Radius**2) * 3.1416; Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
