Skip to content

Commit

Permalink
A few s/new/root_new/ for the (minor) win.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 6, 2009
1 parent 0e8a86a commit 1340dd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/builtins/globals.pir
Expand Up @@ -55,7 +55,7 @@ src/builtins/globals.pir - initialize miscellaneous global variables

## create basic $*CWD
.local pmc os
os = new ['OS']
os = root_new ['parrot';'OS']
$S0 = os."cwd"()
$P0 = box $S0
set_hll_global '$CWD', $P0
Expand Down
2 changes: 1 addition & 1 deletion src/builtins/io.pir
Expand Up @@ -186,7 +186,7 @@ true value is returned.
# Try to change directory; if we fail, exception thrown, so catch
# it and fail if needed.
.local pmc os
os = new ['OS']
os = root_new ['parrot';'OS']
push_eh failure
os.'chdir'(newdir)
pop_eh
Expand Down
2 changes: 1 addition & 1 deletion src/parrot/P6role.pir
Expand Up @@ -28,7 +28,7 @@ Puns the role to a class and returns that class.
# Otherwise, need to create a punned class.
.local pmc p6meta, metaclass, proto
p6meta = get_root_global [.RAKUDO_HLL ; 'Perl6Object'], '$!P6META'
metaclass = new ['Class']
metaclass = new ['parrot';'Class']
$P0 = box 'class'
setprop metaclass, 'pkgtype', $P0
# Compose ourself and any roles we do.
Expand Down

0 comments on commit 1340dd4

Please sign in to comment.