Reply to post: Re: how to lie with PDF

We all hate Word docs and PDFs, but have they ever led you to being hit with 32 indictments?

JeffyPoooh
Pint

Re: how to lie with PDF

Decades ago, I had a one-line subroutine to pack BASIC programs with backspaces. End result was up to 100% independence of LIST output and RUN results.

LIST

10 PRINT "No"

RUN

Yes

For those following along at home, here's the trick.

10 PRINT "Yes"; REM \\\\\\\\\\\ "No"

The subroutine needs to scan memory replacing the placeholder characters (e.g. "\") with ^h. Tokenization may require tweaking number of placeholders to align correctly during LIST. Then Delete the one-line subroutine. What's left is insane source code.

This concept of packing source code with hilarious backspaces likely has much wider applications than just 1980-era BASIC.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon