Program Real Line Counter. Anyone want to jump in?
#14
(10-23-2022, 04:31 AM)Pete Wrote: Hey guys, here's one...

Code: (Select All)
$IF A THEN
        foo1
        foo2
        foo3
$END IF

Any reason this block REM hack shouldn't be ignored?

Just the common sense idea that you're getting silly at this point.

$LET A = TRUE
$IF A THEN
    '.....insert 100,000,000 line program
$END IF

If you ignore that $IF statement, then I just wrote a 1 line program!

If you're going to start testing the $IF condition, then...  good luck with that!  You'll be writing your own mini-language of definitions and comparisons and all that jazz!

After all, which lines do you count?

$IF A THEN
   PRINT "foo"
   X = 2
$ELSE
   PRINT "mootoo"
   Y = s
   S = x
   x = Y
$END IF

The $IF lines?  The $ELSE lines?  Neither?  Both?

You're opening up a crazy can of worms trying to decide to count/not count $IF lines.
Reply


Messages In This Thread
RE: Program Real Line Counter. Anyone want to jump in? - by SMcNeill - 10-23-2022, 05:00 AM



Users browsing this thread: 20 Guest(s)