Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
stub to document QAST::ParamTypeCheck
  • Loading branch information
cognominal committed Aug 20, 2015
1 parent f95126b commit ab46da4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/qast.markdown
Expand Up @@ -393,4 +393,21 @@ would not create a sub-node for string context, or else

would work without complaining.

##QAST::ParamTypeCheck

Used by rakudo to generate code to multidispatch or
enforce signatures at runtime.

For example C<sub f(Mu:D) { ... }> leads to the generation of
the following code where C<$name> is the name of the checked variable.
Probably the first because the binder does a check too. That would be
redundant.

$var.push(QAST::ParamTypeCheck.new(QAST::Op.new(
:op('isconcrete'),
QAST::Var.new( :name($name), :scope('local') )
)));



## QAST::VM

0 comments on commit ab46da4

Please sign in to comment.