On Fri, Mar 2, 2012 at 1:32 PM, Arkady Rost <arkr...@gmail.com> wrote:
> 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?

The listener dynamically executes code and does not perform stack
effect checking. If you attempt to define a word containing that code
snippet you will get a compiler error.

-Joe

------------------------------------------------------------------------------
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