Skip to content

Commit

Permalink
Fix a subid issue with list() exposed by HLL migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
tene committed May 14, 2009
1 parent 1b79d4f commit 60c2bce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/classes/IO.pir
Expand Up @@ -95,7 +95,7 @@ Read all of the lines and return them as a List.
=cut
.namespace ['IOIterator']
.sub 'list' :method
.sub 'list' :method :subid('')
.local pmc pio, ins, res, chomper
$P0 = getattribute self, "$!IO"
pio = getattribute $P0, "$!PIO"
Expand Down
2 changes: 1 addition & 1 deletion src/classes/Nil.pir
Expand Up @@ -25,7 +25,7 @@ src/classes/Nil.pir - Nil objects
=cut

.namespace ['Nil']
.sub 'list' :method
.sub 'list' :method :subid('')
$P0 = new 'List'
.return ($P0)
.end
Expand Down
3 changes: 2 additions & 1 deletion src/parrot/ClassHOW.pir
Expand Up @@ -271,7 +271,8 @@ Dispatches to method of the given name on this class or one of its parents.

autothread_invocant:
.local pmc values, values_it, res, res_list, type
res_list = 'list'()
.const 'Sub' $P1 = 'list'
res_list = $P1()
values = obj.'eigenstates'()
values_it = iter values
values_it_loop:
Expand Down
2 changes: 1 addition & 1 deletion src/parrot/misc.pir
Expand Up @@ -5,7 +5,7 @@ This version of list morphs a ResizablePMCArray into a List.
=cut

.namespace ['ResizablePMCArray']
.sub 'list' :method
.sub 'list' :method :subid('')
## this code morphs a ResizablePMCArray into a List
## without causing a clone of any of the elements
$P0 = new 'ResizablePMCArray'
Expand Down

0 comments on commit 60c2bce

Please sign in to comment.