Hi,
I think there's a bug when unbalanced stack effects for "if" are reported.
With the latest git factor, paste the following incorrect word
declaration in the listener (or in a file and load it) :

: bug ( -- )
    1 2 [ drop drop ] [ drop ] if ;

The  reported error is :

The input quotations to “if” don't match their expected effects
Input         Expected         Got
[ drop drop ] (( ..a -- ..b )) (( x -- ))
[ drop ]      (( ..a -- ..b )) (( -- ))

Stack effects should be (( x x -- )) and (( x -- )).

Jon

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to