Skip to content

Commit

Permalink
Implement .callwith method for Code objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 9, 2009
1 parent 04f63fc commit 4866942
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/classes/Code.pir
Expand Up @@ -120,6 +120,19 @@ Returns a curried version of self.
.end


=item callwith(...)

Just calls this block with the supplied parameters.

=cut

.sub 'callwith' :method
.param pmc pos_args :slurpy
.param pmc named_args :slurpy :named
.tailcall self(pos_args :flat, named_args :flat :named)
.end


=item count()

Return the number of required and optional parameters for a Block.
Expand Down

0 comments on commit 4866942

Please sign in to comment.