Thoughts about Functions, Pseudocode & Natural Language
Mark Wieder
mwieder at ahsoftware.net
Sat Sep 12 18:09:46 EDT 2015
On 09/12/2015 02:33 PM, Dr. Hawkins wrote:
> On Sat, Sep 12, 2015 at 12:47 PM, Jerry Jensen <jhj at jhj.com> wrote:
>
>> And then there’s the well-known Forth construct: ComeFrom . . .
>>
>
> That's Cobol, not Forth.
>
> Forth's own stack behavior can be psychotic, too.
>
InterCal, I believe, from the April Fools 1984 issue of the CACM.
http://c2.com/cgi/wiki?ComeFrom
How to add two numbers in InterCal:
DO WRITE IN .1
DO WRITE IN .2
DO (1) NEXT
DO READ OUT .1
PLEASE GIVE UP
PLEASE STOP GIVING UP
(1) DO COME FROM (3)
(3) DO (2) NEXT
(2) DO .3 <- "?'.1$.2'"~'#0$#65535'
DO .2 <- "&'.1$.2'"~'#0$#65535'
PLEASE .2 <- '.2$#0'~'#65535$#1'
PLEASE DO .1 <- .3
DO .3 <- '.2~.2'~#1
DO .3 <- "?'.3$#1'"~#1
PLEASE DO FORGET .3
DO RESUME #1
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list