4 ms·
My favorite PL/I trick from the punch card days. It takes two cards: DEBUG = 0; /*/ ;1 = GUBED */ Reverse the card to turn on the debug switch. Not inve
by dbcurtis 7y ago
My favorite PL/I trick from the punch card days. It takes two cards:
DEBUG = 0; /*/ ;1 = GUBED
*/
Reverse the card to turn on the debug switch. Not invented by me, I forget who showed me that. A professor I had as an undergrad, I think.
- Robin_Message 7y agoI've done something similar in C type languages to switch between blocks of code: /*/ This block is inactive /*/ This block is active /**/ Just swap the first star to two stars to flip between them.
- ncmncm 7y agoThat is what #ifdef, or #if 0, is for.
- owl57 7y agoSeems like any user of this trick would think of //-style comments and add them to the next language in this lineage. How come this didn't happen until C++?
- deleted 7y ago[deleted]