Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
new/bless/CREATE, and a stub BUILDALL.
  • Loading branch information
jnthn committed Jan 28, 2013
1 parent 5e127ce commit c1b6aa1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nqp-src/NQPCORE.setting
Expand Up @@ -29,6 +29,23 @@ my module EXPORTHOW {
# From src\core\NQPRoutine.pm

my class NQPMu {
method CREATE() {
nqp::create(self)
}

method bless(NQPMu:U $self: *%attributes) {
my $instance := self.CREATE();
$instance.BUILDALL(|%attributes);
$instance
}

method BUILDALL(NQPMu:D $self: *%attrinit) {
# XXX TODO
}

method new(*%attributes) {
self.bless(|%attributes);
}
}

sub print(*@args) {
Expand Down

0 comments on commit c1b6aa1

Please sign in to comment.