Using 'loop' within ->forEach not working correctly.
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
Brad Lindsay12 September 2011
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft