Lasso Soft Inc. > Home

RhinoTrac

LassoSoft Ticket Tracking System

NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.

Lasso 9 Issues



Ticket #7364: Using 'loop' within ->forEach not working correctly

Reported by:
Kyle Jessup
Date:
29 Jun, 2011
Priority:
minor
Component:
Lasso 9
Version:
Keywords:
Platform:
Using 'loop' within ->forEach not working correctly.

Comments

29 Jun, 2011 by Kyle Jessup
Using 'loop' within ->forEach not working correctly.
29 Jun, 2011 by Kyle Jessup
This outputs nothing, should print bazbazbazbaz:

define foo => type {
trait { import trait_queriable }
public forEach => {
local(gb = givenBlock)
loop(4) => {
#gb->invoke('baz')
}
}
}

iterate(foo, local(i))
#i
/iterate
29 Jun, 2011 by Kyle Jessup
define foo => type {
trait { import trait_queriable }
public forEach => {
local(gb = givenBlock,
i = 4)
while(#i--) => {
#gb->invoke('baz')
}
}
}
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft