i've been playing with this a bit myself.
i come from a very strong OO background, using Java for many years.
blitz's OO paradigm is _very_ confusing to me.
using your example from above.
i _think_ what you would find is, that if you were to add another method to your type, FOLLOWING the mytest method, that the "private" modifier would "carry over".
i think this is simply acting as a "switch" to the public/private mechanism in the Blitz compiler, rather than acting as a modifier for the method itself, which is what it _should_ be doing, imho.
i bought BlitzMax recently, over and above Blitz3D, because i really liked the enhanced language features.
when i played with the demo, before i bought it, i thought the "OO features" were quirky to be sure.
i guess i should have played with it more, because i am starting to find it a little more than quirky.
i think there are some things, such as this one, that are well intentioned, but are executed kind of poorly and are a nuisance to use, rather than being exciting and helpful.
but ... i still won't be kicking BlitzMax out of bed just yet ...
:)
Tony
i come from a very strong OO background, using Java for many years.
blitz's OO paradigm is _very_ confusing to me.
using your example from above.
i _think_ what you would find is, that if you were to add another method to your type, FOLLOWING the mytest method, that the "private" modifier would "carry over".
i think this is simply acting as a "switch" to the public/private mechanism in the Blitz compiler, rather than acting as a modifier for the method itself, which is what it _should_ be doing, imho.
i bought BlitzMax recently, over and above Blitz3D, because i really liked the enhanced language features.
when i played with the demo, before i bought it, i thought the "OO features" were quirky to be sure.
i guess i should have played with it more, because i am starting to find it a little more than quirky.
i think there are some things, such as this one, that are well intentioned, but are executed kind of poorly and are a nuisance to use, rather than being exciting and helpful.
but ... i still won't be kicking BlitzMax out of bed just yet ...
:)
Tony