Skip to content

Commit

Permalink
[array set] returns a blank string
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@8465 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
mdiep committed Jun 27, 2005
1 parent 761fc60 commit 0ec0a42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion languages/tcl/lib/commands/array.imc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ set_loop:
$P0 = find_global "_Tcl", "call_level"
call_level = $P0

retval = the_array
if call_level goto save_lex
store_global "Tcl", array_name, the_array
goto done
Expand Down
8 changes: 7 additions & 1 deletion languages/tcl/t/cmd_array.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use lib qw(tcl/t t . ../lib ../../lib ../../../lib);
use Parrot::Test tests => 12;
use Parrot::Test tests => 13;
use vars qw($TODO);

language_output_is("tcl",<<'TCL',<<OUT,"array exists yes");
Expand Down Expand Up @@ -99,3 +99,9 @@ language_output_is("tcl",<<'TCL',<<OUT,"array set uneven");
TCL
list must have an even number of elements
OUT

language_output_is("tcl",<<'TCL',<<'OUT',"array set return value");
puts [array set a [list a b]]
TCL

OUT

0 comments on commit 0ec0a42

Please sign in to comment.