Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (30 sloc) 0.55 kb
2f806d3 @jnthn Here starteth the NQP setting.
authored
1 knowhow NQPInt is repr('P6int') {
2 method new() {
3 nqp::instance_of(self.WHAT);
4 }
5 method Int() {
6 self
7 }
8c6b5ae @jnthn Add Str methods to setting for NQPNum and NQPInt.
authored
8 method Str() {
9 nqp::coerce_int_to_str(self, NQPStr)
10 }
2f806d3 @jnthn Here starteth the NQP setting.
authored
11 }
12
13 knowhow NQPStr is repr('P6str') {
14 method new() {
15 nqp::instance_of(self.WHAT);
16 }
17 method Str() {
18 self
19 }
20 }
21
22 knowhow NQPNum is repr('P6num') {
23 method new() {
24 nqp::instance_of(self.WHAT);
25 }
26 method Num() {
27 self
28 }
8c6b5ae @jnthn Add Str methods to setting for NQPNum and NQPInt.
authored
29 method Str() {
30 nqp::coerce_num_to_str(self, NQPStr)
31 }
2f806d3 @jnthn Here starteth the NQP setting.
authored
32 }
Something went wrong with that request. Please try again.