You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
function method_dosomething_demotype(self ref as demotype, param1)
<stuff involving self>
(or even function demotype:dosomething(param1) with a little bit of sugar)
then you could have:
test as demotype
this last line is just a function call - it would just be syntactic sugar for
oldclassstuff as demotype
(new members here)
so that if the syntactic sugar failed (e.g. there was no subclass subtype method donothing) it looked in the superclass and applied the subclass method of demotype to the oldclassstuff member.
Login to post a reply