If you are typing this directly in the listener, the non-optimizing
compiler is used, which doesn't enforce static stack effects on words. If
you write this code in a file and compile it with the optimizing compiler,
you will get an error.
Regards,
Jon
Le 2 mars 2012 22:32, "Arkady Rost" <arkr...@gmail.com> a écrit :

> Hi!
> Today I was trying to write some factor code and it turned out that I can
> write such code:
> *1 5 4 3 2 [ 5 = not ] loop*
> It works and produces stack with one element 1. I expect that at least I
> would have a warning because loop word takes quotation with ( ... -- ... ?
> ) stack effect. In the example I use quotation with ( x -- x ) stack
> effect. So what I am missing?
>
> Cheers,
>    Arkady Rost
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to