[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interesting discovery...



"Jonathyn Bet'nct" <jonrelay@napanet.net> wrote in message news:<3cf307f9_2@corp.newsgroups.com>...
> Try entering this in Applesoft on any Apple II:
> 
> 10 ?
> 20 ~
> 30 {
> 40 }
> 50 |
> 
> Then LIST it, and here's what you get back:
> 
> 10 PRINT
> 20 ^
> 30 [
> 40 ]
> 50 \
> 
> Next try:
> 
> PRINT 3~3
> 
> And you'll get back:
> 
> 27
> 
> Apparently, when Apple modified BASIC to work with lowercase letters, they
> didn't put an upper level on the range checking, and the input routine
> treats a tilde (~) as a caret (^).
> 
> Has anybody else ever stumbled upon this, or am I the first one?

This was already in the Beagle Brothers Big Tip book. Yeah, it's pretty neat. 

I think I still have a spare copy, if you're interested?



Ralph Glatt