Hi Phil,

Predicate bodies must compile. I'll document this.

Slava

On Sat, Jul 19, 2008 at 2:08 PM, Phil Dawes <[EMAIL PROTECTED]> wrote:
> Hi Slava, Hi factor list,
>
> I have a vocabulary that doesn't load. I've distilled it down to a
> testcase in the hope that somebody else notices what's wrong. In this
> code the predicate matches an array with one integer and two strings.
> Unfortunately it doesn't compile and I'm not sure how to fix it:
>
> ------------------ testcase.factor --
>
> IN: testcase
>
> USING: arrays kernel math strings sequences ;
>
> PREDICATE: s>po-clause < array
>     { [ integer? ] [ string? ] [ string? ] } [ call ] 2all? ;
>
> -------------------------------------
>
> ( scratchpad ) USE: testcase
>
> Loading P" testcase/testcase.factor"
> :warnings - print 4264 semantic warnings.
> 1: USE: testcase
>                 ^
> Word: <vector>
> Unable to infer stack effect of array-capacity?
> Nesting: { vector <vector> }
>
> The following restarts are available:
>
> :1    Load testcase/testcase.factor again
>
> Type :help for debugging help.
>
> -------------------------------------
>
> Wierdly if I then try to load it again it works, so I have a workaround.
> I'd really like to fix this though as I plan to distribute the source
> for this project.
> Any alternative ways of doing this that do load correctly would also be
> greatly appreciated.
>
> Many Thanks,
>
> Phil
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to