2010/1/25 Richard A. Smith :
> I worked it out.
>
> : check-ak " add-tag ak 0" eval ;
>
> ok ' check-ak catch if ." Laptop already activated" cr then
Thanks muchly!
It works well.
Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.
On 01/25/2010 12:05 PM, Paul Fox wrote:
>
> maybe something like:
> " ak" find-tag if 2drop ." Laptop already activated" cr then
>
> i'm pretty much a neophyte too, but i believe the commands that one
> types at the ok prompt that "feel" like command, with trailing args,
> should be avoided
On 01/25/2010 10:59 AM, Daniel Drake wrote:
> Can anyone help me with a tiny Forth script? Can never quite get my
> head around the language.
>
> I'm trying to set up an if-else based on whether a mfg tag exists (or
> whether writing a mfg tag succeeded or not)
>
> I'm trying:
>
> add-tag ak 0
daniel wrote:
> Can anyone help me with a tiny Forth script? Can never quite get my
> head around the language.
>
> I'm trying to set up an if-else based on whether a mfg tag exists (or
> whether writing a mfg tag succeeded or not)
>
> I'm trying:
>
> add-tag ak 0 catch if 2drop ."
On Mon, Jan 25, 2010 at 10:59, Daniel Drake wrote:
> Can anyone help me with a tiny Forth script? Can never quite get my
> head around the language.
I once wrote pen plotter programs in FORTH for fractals, to test the
plotter mechanism. Hypnotic.
> I'm trying to set up an if-else based on whethe
Can anyone help me with a tiny Forth script? Can never quite get my
head around the language.
I'm trying to set up an if-else based on whether a mfg tag exists (or
whether writing a mfg tag succeeded or not)
I'm trying:
add-tag ak 0 catch if 2drop ." Laptop already activated" cr then
But, i