More object model hacking

Recently I've been doing more work on implementing Perl 6 OO support in Rakudo. You can read the full write-up, but as an overview:
  • Attributes are now more in line with S12, storing them at $!foo under the hood no matter what twigil they are declared with, generating an accessor/mutator of the twigil is '.' and creating a lexical alias to the attribute if there is no twigil (so has $x means you can use $x and $!x to refer to the attribute).
  • The initial work to support inheritance is in place. And it really is implemented through a generic trait application mechanism, not special-case code.
  • The "self" keyword can be used now.
  • The very initial bits of work on roles are in, but the composition semantics are not correct yet. That will change soon.
Enjoy, and I hope to have more stuff to report on soon.

Categories:

Leave a comment

About this Entry

This page contains a single entry by Jonathan Worthington published on February 10, 2008 5:41 PM.

Perl 6 Design Minutes for 06 February 2008 was the previous entry in this blog.

Perl 6 Design Minutes for 13 February 2008 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Subscribe

    Subscribe to rakudo.org

Powered by Movable Type 4.1
Technorati Profile