Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

malte (1708)

malte
  (email not shown publicly)
http://joose-js.blogspot.com/

Working on Joose JavaScript meta system (Blog) [blogspot.com] and blok [appspot.com], a web based application for collaborative ui prototyping.

Journal of malte (1708)

Saturday March 22, 2008
07:52 AM

Joose can write TPS-Reports

[ #35956 ]
While advancing at least two computer science zen levels I augmented my brain enough to implement the augment method modifier in Joose.

Class("HTMLDoc", {
    augment: {
        html: function () { return "<html>"+this.INNER()+"</html>" }
    }
})

Class("HTMLDocBody", {
    isa: HTMLDoc,
    augment: {
        html: function () { return "<body>"+this.INNER()+"</body>" }
    }
})

Class("TPSReport", {
    isa: HTMLDocBody,
    augment: {
        html: function () { return "<h1>TPS-Report</h1>" }
    }
})

While making method modifiers stackable was really easy for all the other modifiers, I had to roll my own reverse call stack to make it happen with augment.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.