Permalink
Browse files

Make Mu.new a multi method.

  • Loading branch information...
1 parent 02206bd commit 5e252093ce7d166308e5769ac6950c11f2e1d28b @colomon colomon committed Jun 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/CORE.setting
View
@@ -278,7 +278,7 @@ my class Mu {
method not() { !self }
method bless($, *%_) { Q:CgOp { (default_new (@ {self}) (unbox varhash (@ {%_}))) } }
method CREATE() { Q:CgOp { (obj_newblank (obj_llhow (@ {self}))) } }
- method new(*%_) { Q:CgOp { (default_new (@ {self}) (unbox varhash (@ {%_}))) } }
+ multi method new(*%_) { Q:CgOp { (default_new (@ {self}) (unbox varhash (@ {%_}))) } }
method clone(*%_) { Q:CgOp { (repr_clone (@ {self}) (unbox varhash (@ {%_}))) } }
method dispatch:<::>(|) { Q:CgOp { (dispatch_fromtype) } }
method immutable() { !defined(self) }

0 comments on commit 5e25209

Please sign in to comment.