Permalink
Browse files

[dotnet] add .Num and .Int to knowhow Any in NQPSetting

  • Loading branch information...
1 parent 31726b5 commit 8709bf41b4bef66eb02b99c89f06a9be8d92a4c2 @diakopter diakopter committed Nov 28, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 common/NQP/NQPSetting.pm
View
@@ -87,6 +87,8 @@ my knowhow NQPNum is repr('P6num') {
# XXX Bad hack, we'll replace this later.
my knowhow Any {
method defined() { 0 }
+ method Num() { nqp::coerce_int_to_num(0) }
+ method Int() { 0 }
}
my knowhow NQPMapIter {

0 comments on commit 8709bf4

Please sign in to comment.