File tree Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,11 @@ pir::const::INTERPINFO_TOTAL_MEM_ALLOC
25
25
pir::const::INTERPINFO_TOTAL_MEM_USED
26
26
pir::const::INTERPINFO_TOTAL_PMCS
27
27
28
- can be done now by lizmat
29
- pir::get_who__PP -> nqp::who
30
- pir::does
31
- 2nd = array then nqp::islist
32
- 2nd=hash then nqp::ishash
33
-
34
28
after jnthn's toqast branch is merged
35
29
nqp::defined -> nqp::isconcrete
36
30
pir::defined__IP -> nqp::isconcrete
31
+ pir::get_who__PP -> nqp::who
32
+ pir::does -> 2nd=hash then nqp::ishash
37
33
pir::isa
38
34
2nd arg = ResizablePMCArray, then nqp::islist
39
35
2nd arg = hash then nqp::ishash
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class HLL::Actions {
7
7
}
8
8
9
9
method ints_to_string ($ ints ) {
10
- if pir::does ($ ints , ' array ' ) {
10
+ if nqp ::islist ($ ints ) {
11
11
my $ result := ' ' ;
12
12
for $ ints {
13
13
$ result := $ result ~ nqp :: chr ($ _ . ast);
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class HLL::CommandLine::Result {
109
109
# how I miss p6's Hash.push
110
110
111
111
if nqp ::existskey(% ! options , $ name ) {
112
- if pir::does (% ! options {$ name }, ' array ' ) {
112
+ if nqp ::islist (% ! options {$ name }) {
113
113
nqp :: push (% ! options {$ name }, $ value );
114
114
} else {
115
115
% ! options {$ name } := [ % ! options {$ name }, $ value ];
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ class HLL::Compiler {
383
383
method evalfiles ($ files , * @ args , * % adverbs ) {
384
384
my $ target := nqp :: lc (% adverbs <target >);
385
385
my $ encoding := % adverbs <encoding >;
386
- my @ files := pir::does ($ files , ' array ' ) ?? $ files !! [$ files ];
386
+ my @ files := nqp ::islist ($ files ) ?? $ files !! [$ files ];
387
387
$ ! user_progname := nqp :: join (' ,' , @ files );
388
388
my @ codes ;
389
389
for @ files {
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ class NQPCursor does NQPCursorRole {
532
532
}
533
533
534
534
method ! INTERPOLATE ($ var ) {
535
- if pir::does ($ var , ' array ' ) {
535
+ if nqp ::islist ($ var ) {
536
536
my $ maxlen := -1 ;
537
537
my $ cur := self . ' !cursor_start' ();
538
538
my $ pos := nqp ::getattr_i($ cur , $ ? CLASS , ' $!from' );
@@ -573,7 +573,7 @@ class NQPCursor does NQPCursorRole {
573
573
method ! INTERPOLATE_REGEX ($ var ) {
574
574
unless pir::is_invokable__IP($ var ) {
575
575
my $ rxcompiler := pir::compreg__Ps(' QRegex::P6Regex' );
576
- if pir::does ($ var , ' array ' ) {
576
+ if nqp ::islist ($ var ) {
577
577
my $ res := [];
578
578
for $ var {
579
579
my $ elem := $ _ ;
You can’t perform that action at this time.
0 commit comments