[REBOL] Re: function?
From: tim:johnsons-web at: 22-Mar-2004 10:46
* Maxim Olivier-Adlhoch <[maximo--meteorstudios--com]> [040322 10:41]:
> I'll add that
>
> a word of the form :word is a get-word! datatype.
> and using your (and my) example, the following form also works if you
> are in the global namespace (like when you're in the console)
Thanks to Max and Gabrielle. All really good info>
regards
tim
> function? get 'forall
>
> get returns value of the word instead of evaluating it.
>
> -MAx
>
> > -----Original Message-----
> > From: Tim Johnson [mailto:[tim--johnsons-web--com]]
> > Sent: Monday, March 22, 2004 1:51 PM
> > To: [rebol-list--rebol--com]
> > Subject: [REBOL] function?
> >
> >
> >
> > This is strange: (to me anyway)
> > >> help function?
> > USAGE:
> > FUNCTION? value
> >
> > DESCRIPTION:
> > Returns TRUE for function values.
> > FUNCTION? is an action value.
> >
> > ARGUMENTS:
> > value -- (Type: any-type)
> >
> > ;; OKAY .... let's find a function
> > >> help forall
> > USAGE:
> > FORALL 'word body
> >
> > DESCRIPTION:
> > Evaluates a block for every value in a series.
> > FORALL is a function value.
> >
> > ARGUMENTS:
> > word -- Word set to each position in series and changed
> > as a result (Type: word)
> > body -- Block to evaluate each time (Type: block)
> >
> > (SPECIAL ATTRIBUTES)
> > throw
> > ;; test forall
> > >> function? 'forall
> > == false
> >
> > ;; Say What!? I'm missing something here.
> > ;; what did I do wrong?
> >
> > thanks
> > tim
> > --
> > Tim Johnson <[tim--johnsons-web--com]>
> > http://www.alaska-internet-solutions.com
> > --
> > To unsubscribe from this list, just send an email to
> > [rebol-request--rebol--com] with unsubscribe as the subject.
> >
> >
>
> --
> To unsubscribe from this list, just send an email to
> [rebol-request--rebol--com] with unsubscribe as the subject.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com