Skip to content

Commit

Permalink
Perlito5 - java - unshift() for native types
Browse files Browse the repository at this point in the history
  • Loading branch information
fglock committed Jun 19, 2017
1 parent 2a10157 commit 909bec6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions perlito5.pl
Expand Up @@ -28048,8 +28048,10 @@
return this.aset(i, new " . $perl . "(s));
}
public PlObject push(" . $native . " s) {
this.a.add(new " . $perl . "(s));
return this.length_of_array();
return this.push(new " . $perl . "(s));
}
public PlObject unshift(" . $native . " s) {
return this.unshift(new " . $perl . "(s));
}
" : ()
} sort {;
Expand Down
6 changes: 4 additions & 2 deletions src5/lib/Perlito5/Java/Runtime.pm
Expand Up @@ -5664,8 +5664,10 @@ EOT
return this.aset(i, new $perl(s));
}
public PlObject push($native s) {
this.a.add(new $perl(s));
return this.length_of_array();
return this.push(new $perl(s));
}
public PlObject unshift($native s) {
return this.unshift(new $perl(s));
}
" : ()
}
Expand Down

0 comments on commit 909bec6

Please sign in to comment.