projects
/
xynt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
console surrogate added
[xynt.git]
/
xynt-base.js
diff --git
a/xynt-base.js
b/xynt-base.js
index
a2cfd24
..
35dd58e
100644
(file)
--- a/
xynt-base.js
+++ b/
xynt-base.js
@@
-1,7
+1,3
@@
-/*
- * TODO
- * super methods caller
- */
function Extends(sub)
{
function Extends(sub)
{
@@
-11,7
+7,7
@@
function Extends(sub)
inh.xynt_sup = [];
inh.xynt_sup_cl = [];
inh.xynt_sup = [];
inh.xynt_sup_cl = [];
- console.log("
INIZIO EX
T");
+ console.log("
EXT STAR
T");
var multi = function(sub, super, is_last)
{
var multi = function(sub, super, is_last)
{
@@
-67,7
+63,9
@@
function Extends(sub)
sub.prototype = inh;
console.log(sub.prototype.xynt_sup);
sub.prototype = inh;
console.log(sub.prototype.xynt_sup);
- console.log(sub.prototype.xynt_sup_cl);
+ console.log([ [ "xynt_sup_cl", "zogo" ], sub.prototype.xynt_sup_cl]);
+
+ console.log("EXT FINISH");
}
function ExtendsInst(sub)
}
function ExtendsInst(sub)
@@
-86,6
+84,9
@@
function ExtendsInst(sub)
sub.xynt_sup_cl = new Array();
for (var f in proto) {
sub.xynt_sup_cl = new Array();
for (var f in proto) {
+ /* NOTE: this allow potentially TO BREAK by the extending class
+ if we disable it we don't have a reason to keep the callSuper function,
+ I need to meditate on it */
if (f == "xynt_sup" || f == "xynt_sup_cl")
continue;
if (f == "xynt_sup" || f == "xynt_sup_cl")
continue;
@@
-153,7
+154,8
@@
function ExtendsInst(sub)
function show_class(cl) {
console.log("Attributes Class of "+cl);
for (f in cl.prototype) {
function show_class(cl) {
console.log("Attributes Class of "+cl);
for (f in cl.prototype) {
- console.log(f+": ["+cl.prototype[f]+"]");
+ console.log(f+"-v");
+ console.log(cl.prototype[f]);
}
console.log("---");
}
}
console.log("---");
}
@@
-161,7
+163,8
@@
function show_class(cl) {
function show_inst(inst) {
console.log("Attributes Instance of "+inst);
for (f in inst) {
function show_inst(inst) {
console.log("Attributes Instance of "+inst);
for (f in inst) {
- console.log("["+f+"]: ["+inst[f]+"]");
+ console.log(f+"-v");
+ // console.log(inst[f]);
}
console.log("---");
}
}
console.log("---");
}