From 8a786f4c99c027c518c3a7a59a832433d19e8d7b Mon Sep 17 00:00:00 2001 From: Kevan Benson Date: Mon, 6 Jul 2009 21:10:52 -0700 Subject: [PATCH] Patch to change bahavior of .push to return modified array, not number of elements Signed-off-by: Moritz Lenz --- src/classes/Array.pir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/Array.pir b/src/classes/Array.pir index 027ab2c1401..00cadb9a895 100644 --- a/src/classes/Array.pir +++ b/src/classes/Array.pir @@ -175,7 +175,7 @@ Add C to the end of the Array. it_loop_end: $I0 = elements self splice self, args, $I0, 0 - .tailcall self.'elems'() + .return (self) type_error: 'die'('Type check failure in push') .end