You're missing a whitespace between x and your closing parenthesis in
": dice5 ( -- x)"

The error message should be better...

Jon

On Thu, Jan 29, 2015 at 12:04 PM, Alexander Iljin <ajs...@yandex.ru> wrote:

> Hello!
>
>   I was trying to create a vocabulary:
>
> USING: random ;
> IN: dice7
>
> ! Output a random number 1..5.
> : dice5 ( -- x) random-unit 5 * floor 1 + ;
>
> ! : dice7 () 7 random-units [ 5 * ] each 6 [ + ] times 5 / ;
>
>   As you can see, dice7 is a work in progress and is commented out with
> the bang character. Or so I thought.
>
>   However, trying to load the vocabulary produces an error message:
>
> IN: scratchpad Command: refresh-all
> Loading resource:work/dice7/dice7.factor
>
> ==== dice7:
>
> resource:work/dice7/dice7.factor
>
> 7: : dice5 ( -- x) random-unit 5 * floor 1 + ;
> 9: ! : dice7 () 7 random-units [ 5 * ] each 6 [ + ] times 5 / ;
>             ^
> No word named “dice7” found in current vocabulary search path
>
>   Is there something special about a colon after the bang? Or am I using
> it wrong?
>
> ---=====---
>  Александр
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to