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...
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...