Skip to content

Commit

Permalink
Add a TODO note.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnsholt committed May 19, 2015
1 parent 464d463 commit 7b1aa76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Snake/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ method term:sym<nqp::op>($/) {
}

method make-attribute($/) {
# TODO: Implement the proper attribute lookup protocol. It goes like this:
# 1) Look for a __getattribute__ in the type object. If it exists, call it
# with the attribute name.
# 2) Check the object and the parent object chain for an attribute with
# the proper name.
# 3) As a last resort, call __getattr__ with the attribute name if it
# exists.
make QAST::Block.new(:blocktype<immediate>,
QAST::Var.new(:name<$_>, :scope<local>, :decl<var>),
QAST::Op.new(:op<bind>,
Expand Down

0 comments on commit 7b1aa76

Please sign in to comment.