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)

Monday March 24, 2008
07:14 AM

Attribute meta classes

[ #35968 ]
Attributes now have their own meta class in Joose. Support for attribute traits is currently quite limited, but you can say:

Class("Car", {
    has: {
        leftRearWheel: {
            init: new Wheel(),
            isa: Wheel,
            is: rw,
            handles: "*"
        }
    }
})

to only allow Wheels in the attribute leftRearWheel and to delegate all of Wheel's methods to the leftRearWheel.

In other news:

  • Joose is now hosted in the Moose svn
  • Joose now supports the Moose JSON Storage format and allows round trips between Moose and Joose (at least for basic tests)
  • Joose now works in IE and Opera
  • Joose now supports class methods
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.