Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[docs] document nqp::bindattr
  • Loading branch information
moritz committed Oct 13, 2013
1 parent 68d0dbd commit a6a00f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/ops.markdown
Expand Up @@ -1163,6 +1163,16 @@ of the type indicated by the opcode suffix.

# OO/SixModel Opcodes

## bindattr
* `bindattr(Mu $obj, Mu $typeobj, str $attributename, Mu $new_value)`
* `bindattr_i(Mu $obj, Mu $typeobj, str $attributename, int $new_value)`
* `bindattr_n(Mu $obj, Mu $typeobj, str $attributename, num $new_value)`
* `bindattr_s(Mu $obj, Mu $typeobj, str $attributename, str $new_value)`

Binds `$new_value` to the attribute of name `$attributename` of object `$obj`,
where the attribute was declared in type `$typeobj`. The notes in the
`getattr` documentation also apply to `bindattr`.

## can
* `can(Any $obj, str $method)`

Expand Down

0 comments on commit a6a00f1

Please sign in to comment.