Re: CREATE ... DOES> and >BODY




Andrew Haley wrote:
> Alex McDonald <alex_mcd@xxxxxxxxxxxxxxx> wrote:
> > Andrew Haley wrote:
> >> Alex McDonald <alex_mcd@xxxxxxxxxxxxxxx> wrote:
> >>
> >>>Does ANS Forth permit
> >>
> >>>: X CREATE 10 , DOES> @ ;
> >>>X Y
> >>>' Y >BODY
> >>
> >>
> >>>and, if so, should it be the value of HERE after the CREATE?
> >>
> >> Yes, and yes. Why do you ask?
>
> > It's not clear from the ANS specification.
>
> The definition of >BODY says " An ambiguous condition exists if xt is
> not for a word defined via CREATE." Note the use of "via" here: it
> doesn't preclude the use of DOES> or , after CREATE.

And presumably ;CODE as well.

George Hubert

.