Interesting polymorphic problem.

BlitzMax Forums/BlitzMax Programming/Interesting polymorphic problem.

There we go, I knew it was possible, just not in Max.

What happens in C++ if you create a variable of type a called x and typecast aa to it (x=a(a1)), and then call a.b(). Surely then it will print "b+" because it's using polymorphism. This is actually an inconsistency really isn't it? They should both do the same thing. However, it should also be possible to call the baseclass method too, so that developers can have the best of both worlds.

Nelvin: I get it. I don't have any flags. My polymorphic code works fine, I just wondered if this extra little option of calling a base class method within the base class was possible that's all.