Re: [colorforth] does>
- Subject: Re: [colorforth] does>
- From: Mark Slicker <maslicke@xxxxxxxxxxx>
- Date: Sun, 10 Aug 2003 14:59:24 -0400 (EDT)
I looked up the meaning of these things in google. Here is 'create' 'does'
with an example of 'constant':
macro
: 1! [a!] $288 2, [drop] ; forth
: create [?dup] $b8 1, here 9 + 4 / , $eb 2,
: align4 here 3 ? if 1, align4 ; then drop ;
: does pop last @ @ 11 + dup 1 + negate u+ 1! ;
: constant create , does @ ;
: five [ 5 constant ]
Of course it is much simpler to do:
: five 5 ;
So colorForth might have made these words obsolete.
Mark
On Sat, 9 Aug 2003, Jeff wrote:
> Hello colorForth,
>
> Being very new to colorForth, I was wondering what the equivelant of
> DOES> is in colorForth (if there is one?) I'm just trying to
> understand how I can use CREATE DOES> in colorForth. Perhaps a
> simple example (like CONSTANT) would be helpful?
>
> --
> Best regards,
> Jeff mailto:jma@xxxxxxxxx
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
> Main web page - http://www.colorforth.com
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com