<html>
<head>
<script type="text/javascript" src="commons.js"></script>
+<script type="text/javascript" src="xynt-base.js"></script>
<script type="text/javascript" src="xynt-dd.js"></script>
<script type="text/javascript" src="xynt-link.js"></script>
<script type="text/javascript">
+var a = new Array("a", "b", "c", "d");
+a.delete_element(0);
+
+console.log(a);
+
+exit;
+
+
function Adamo() {
this.name = "adamo";
}
name: "Summo",
s_attr: null,
+
+ c_func: function()
+ {
+ console.log("c_func overwrited");
+ },
+
s_func: function()
{
this.a_func();
Extends(Summo, A, B, C);
-function Extends(sub)
-{
- var supers = [];
-
- thinF = function(){};
- tmp = new thinF();
-
- console.log("INIZIO EXT");
-
- var multi = function(sub, super, is_last)
- {
- var proto = super.prototype;
-
- for (var f in proto) {
- console.log("LOOP: "+f);
- if( f != "constructor" && typeof(proto[f]) == "function" && is_last){
- console.log("PR: "+proto['name']+" F: "+f);
- // sub[f] = proto[f];
- sub[f] = function(){
- console.log("INFU PR: " + proto['name'] + " FUNC: "+f);
- return proto[f].apply(this,arguments);
- }
- }
- else {
- console.log("PR: "+proto.name+" A: "+f+" FUN: "+proto[f]);
- sub[f] = proto[f];
- }
- }
- }
-
- for( var i=1; i < arguments.length ; i++){
- console.log("INIZIO LOOP");
- multi(tmp, arguments[i], false);
- supers.push(arguments[i].prototype);
- }
- multi(tmp, sub, true);
- sub.prototype = tmp;
-}
s_ist = new Summo();
s_ist.s_func();