Skip to content

Commit a6a00f1

Browse files
committed
[docs] document nqp::bindattr
1 parent 68d0dbd commit a6a00f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/ops.markdown

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,16 @@ of the type indicated by the opcode suffix.
11631163

11641164
# OO/SixModel Opcodes
11651165

1166+
## bindattr
1167+
* `bindattr(Mu $obj, Mu $typeobj, str $attributename, Mu $new_value)`
1168+
* `bindattr_i(Mu $obj, Mu $typeobj, str $attributename, int $new_value)`
1169+
* `bindattr_n(Mu $obj, Mu $typeobj, str $attributename, num $new_value)`
1170+
* `bindattr_s(Mu $obj, Mu $typeobj, str $attributename, str $new_value)`
1171+
1172+
Binds `$new_value` to the attribute of name `$attributename` of object `$obj`,
1173+
where the attribute was declared in type `$typeobj`. The notes in the
1174+
`getattr` documentation also apply to `bindattr`.
1175+
11661176
## can
11671177
* `can(Any $obj, str $method)`
11681178

0 commit comments

Comments
 (0)