Re: Cases where Forth seems a little clunky
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
Re: Cases where Forth seems a little clunky         


Author: John Doty
Date: May 9, 2007 13:59

Andrew Haley wrote:
> John Doty whispertel.losetheh.net> wrote:
>> Andrew Haley wrote:
>>> John Doty whispertel.losetheh.net> wrote:
>>>
>>>> Bob Goeke's fix for this in LSE was indirect autoincrement addressing.
>>>> In LSE64:
>>>> # n s d copy yields nothing
>>>> # copy n cells from s to d
>>>> variables: s d
>>>> (copy) : s @@+ d @!+
>>>> copy : d ! s ! (copy) iterate
>>> Lemme guess: you don't have zero-length strings
>
>> 0 x iterate
>
>> does x zero times. Yes, it's magic ;-)
>
> Ah, I see, this must be part of LSE64's famed linguistic simplicity.
Show full article (2.17Kb)
no comments