Hi everybody,
I experienced an issue with rapydscript's inheritance. This is my rapydscript code (this is just a basic example, not my real project):
http://rapydscript.pyjeon.com/?q=KEbkTVThis doesn't work, because the compiled code results in infinite recursion.
However, it works great when I use the rapydscript version installed on my computer (installed a few months ago). This is what I get:
(function(){
function _$rapyd$_extends(child, parent) {
child.prototype = Object.create(parent.prototype);
child.prototype.constructor = child;
}
var o;
function Object1(){
var self = this;
self.x = 0;
};
function Object2(){
var self = this;
Object1.prototype.constructor.call(self);
};
_$rapyd$_extends(Object2, Object1);
Object2.prototype.show_x = function show_x(){
var self = this;
console.log(self.x);
};
o = new Object2();
o.show_x();
})();
Could you please fix that bug or tell me what is wrong ? Thank you very much !