Skip to content

Commit

Permalink
first pass of [append]
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Nov 28, 2009
1 parent ebae878 commit b1b5426
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/PmTcl/Commands.pm
@@ -1,4 +1,15 @@

our sub append($var, *@args) {
my $lexpad := pir::find_dynamic_lex__Ps('%LEXPAD');

my $result := $lexpad{$var};
while @args {
$result := $result ~ @args.shift;
}

set($var, $result);
}

our sub catch($code, $varname?) {
my $retval := 0; # TCL_OK
my $result;
Expand Down

0 comments on commit b1b5426

Please sign in to comment.