unexpected behavior in array algoritm
Brought to you by:
fagiano
Squirrel 3 beta 1 . Strange behavior.....
class test
{
function doit()
{
local some_array = [ 1,2,3 ]
local func = function(i,v)
{
print(some_field) // FAIL - no such index 'some_field'
print(this) // prints 'array.....' but no 'class ....', as expected
return true
}
local other_array = some_array.filter(func)
}
some_field = "some_string"
}