tanakahisateru/pinoco — Issue #47: Extend Vars with closure ad-hoc
Author: tanakahisateru
Created: 2011-12-28 11:40:25+00:00
State: open
Labels: enhancement

Pinoco_Vars has registerAsLazy to access field dynamically and seamlessly, but lazy/dynamic property can't be take any parameter. More simply I want an object extending way just like JavaScript functions in objects, Ruby's singleton methods or such as. It will be alternative traits for PHP5.3.

Perhaps introducing $self argument would be needed. I guess it will be like Python's way than Ruby...