Thanks for your answer Anton. But what does the ..a exactly mean?
It is a stack effect row variable? Is there a connection with the number of
"arguements" it stands for?

Greetings,
Fabian



Anton Gorenko schrieb:
> if '?' is t, not '..a'.
> http://docs.factorcode.org/content/article-effects.html
> http://docs.factorcode.org/content/article-effects-variables.html
>
> 'true' and 'false' quotations have same stack effects, they take 'a'
> (a >= 0) values from the stack and leave 'b' (b >= 0) values on the
> stack.
> So '3 2 t [ + ] [ - ] if' is correct ('true' and 'false' have ( x x --
> x ) stack effect, 'if' has ( x x ? true: ( x x --  x ) false: ( x x --
>  x ) -- x ) stack effect in this case), but
> '3 2 t [ + + ] [ - ] if', '3 t [ + ] [ - ] if', '3 2 t [ + ] [ 1 ]
> if', etc. are incorrect.
>
> 2010/9/18 Fabian Boucsein <fabian.boucs...@googlemail.com>:
>   
>> Hello Factor mailing list,
>>
>> i try to understand the definition of "if" in the factor handbook:
>> if ( ..a ? true: ( ..a -- ..b ) false: ( ..a -- ..b) -- ..b)
>>
>> I read if ..a is true execute the true codeblock else the false block
>> which is quite clear but what does the last ..b stands for?
>> Thanks for your help.
>>
>> Fabian
>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>>     
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>   


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to