Skip to content

Commit

Permalink
add args handling to eval
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Nov 29, 2009
1 parent 3b259e5 commit 750eea8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PmTcl/Commands.pm
Expand Up @@ -88,6 +88,9 @@ INIT {


our sub eval(*@args) {
if +@args < 1 {
error('wrong # args: should be "eval arg ?arg ...?"');
}
my $code := concat(|@args);
our %EVALCACHE;
my &sub := %EVALCACHE{$code};
Expand Down

0 comments on commit 750eea8

Please sign in to comment.