Interesting polymorphic problem.

BlitzMax Forums/BlitzMax Programming/Interesting polymorphic problem.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

@Nelvin: This doesn't compile it says "invalid conversion from `a*' to `aa*'"
main(){
aa* a1 = new a();
a* a2 = a1;
a2->b();
}


did you mean to put aa* a1 = new aa() ? This fixes the problem and demonstrates your point.

btw...
There we go, I knew it was possible, just not in Max.
I take it back :-(