Skip to content

Commit

Permalink
Correct Array's + operator to be non-destructive. Whoops.
Browse files Browse the repository at this point in the history
  • Loading branch information
treed committed Jul 14, 2009
1 parent 4865c28 commit 611c3c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/classes/Array.pir
Expand Up @@ -1151,8 +1151,10 @@ Operator form for either repetition (when argument is an Integer), or as a short
.sub 'infix:+' :multi('CardinalArray','CardinalArray')
.param pmc this
.param pmc that
.local pmc array

$P0 = this.'concat'(that)
$P0 = this.'clone'()
$P0 = $P0.'concat'(that)

.return ($P0)
.end
Expand Down

0 comments on commit 611c3c2

Please sign in to comment.