Custom Type Object reference inside Function

BlitzMax Forums/BlitzMax Programming/Custom Type Object reference inside Function

Hum interesting to know that particular case.
Thanks Ziggy !

Currently var do the job since I just need to change fields, use methods and so on.

But it's probably why when I try to pass a 'self' object and get error.
Example :
Type myType

    Field value:Int

    Method run()
        Print value
	myFunctionA(value) 'value could have been of any other type except self
	Print value
	myFunctionB(Self)
	Print value
    End Method
End Type

Function myFunctionA(o:Int Var) 'this function work's
    o = 10
End Function

Function myFunctionB(o:Object Var) 'this one not no matter I set o:Object or o:myType ...
    myType(o).value = 20           'Casting won't help too
End Function

Local t:myType = New myType
t.run