Lasso Soft Inc. > Home

Using 'loop' within ->forEach not working correctly

  • Created on:29 Jun 2011
  • By:Kyle Jessup
  • Last Modified On:29 Jun 2011
  • By:Kyle Jessup

Using 'loop' within ->forEach not working correctly.

  • id:7364
  • Version:9.0.0
  • Severity:Workaround
  • Status:Open
  • Priority:Medium

Comments

The problem is with [iterate] when you have a loop in ->forEach.

Example:

define foo => type {
trait { import trait_queriable }

public forEach => {
local(gb) = givenBlock
loop(4) => {
#gb->invoke('baz')
}
}
}

iterate(foo) => {^ loop_value + '
' ^} // Doesn't output anything

By:Brad Lindsay on: 12 September 2011

LassoSoft Inc. > Home

 

 

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