One thing you can do is put your factcheck.factor into a "factcheck"
directory in your project.  Then, to install, someone can just checkout your
code and add the project directory to vocab-roots, by either:

1) In the listener:

    ( scratchpad ) "/path/to/factcheck" add-vocab-root

2) Add it to the .factor-roots file to always be available:

    $ cat "/path/to/factcheck" >> ~/.factor-roots


On Thu, Aug 25, 2011 at 11:23 AM, Andrew Pennebaker <
andrew.penneba...@gmail.com> wrote:

> factcheck fully functional
> https://github.com/mcandre/factcheck
>
> How should I package it so that others can install it?
>
> How does one install a Factor package?
>
> How does one load the code from a Factor package (is USE/USING enough)?
>
> Cheers,
>
> Andrew Pennebaker
>  www.yellosoft.us
>
> On Thu, Aug 25, 2011 at 10:52 AM, Joe Groff <arc...@gmail.com> wrote:
>
>>
>> On Aug 25, 2011, at 12:34 AM, Andrew Pennebaker wrote:
>>
>> Aha! How could I rewrite for-all? so that it prints the first stack that
>> fails the predicate?
>>
>>
>> The most straightforward thing I can think of is to package up the
>> generated values with output>sequence, then feed the array to the predicate
>> via input<sequence:
>>
>> :: for-all ( generator: ( -- ..a ) predicate: ( ..a -- ? ) -- ? )
>>     1000 iota [ drop
>>         generator { } output>sequence :> generated
>>         generated predicate input<sequence :> ok?
>>         ok? [ generated . ] unless
>>         ok? not
>>     ] find drop not ; inline
>>
>> -Joe
>>
>>
>> ------------------------------------------------------------------------------
>> EMC VNX: the world's simplest storage, starting under $10K
>> The only unified storage solution that offers unified management
>> Up to 160% more powerful than alternatives and 25% more efficient.
>> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
>> _______________________________________________
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>>
>
>
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to