EachIn troubles

BlitzMax Forums/BlitzMax Beginners Area/EachIn troubles

The return isn't a problem

Problem is that Function can not access Fields defined as it works on "type scope" and not "instance scope" so the only thing it knows of within a type is global and const.

for working on instance scope you have to use method as you already realized :)

return is no problem. wrong return types etc would give you an error as many other things would too (especially in strict)