Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #243 from cognominal/master
stub to document QAST::ParamTypeCheck
  • Loading branch information
FROGGS committed Aug 20, 2015
2 parents f95126b + ab46da4 commit 8717925
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 8717925

Please sign in to comment.