Nested Scope Bug

Archives Forums/BlitzMax Bug Reports/Nested Scope Bug

Pharmhaus(Posted 2013) [#1]
Access to Types field from within a function, should throw syntax error.




col(Posted 2013) [#2]
Its because Functions are not fully related to the Type. You would need to pass an instance of the type as a parameter to function to gain access.

I agree its confusing as the Function isnt available from outside the Type scope, giving the effect that the function is indeed a part of the Type and should be able to the Types variables.

Something like this is needed :