Skip to content

Commit

Permalink
implement basic [rename foo ""] (delete command)
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jul 11, 2010
1 parent c6d69d0 commit 2b618be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Partcl/commands/main.pm
Expand Up @@ -514,6 +514,13 @@ our sub rename(*@args) {
if +@args != 2 {
error('wrong # args: should be "rename oldName newName"');
}
if @args[1] eq "" {
# delete sub.
my $ns := pir::get_hll_namespace__P();
pir::delete__vQs($ns, @args[0]);
} else {
# XXX actually rename
}
}

our sub set(*@args) {
Expand Down

0 comments on commit 2b618be

Please sign in to comment.