From: Jason S. <jsw...@ya...> - 2003-01-15 17:18:22
|
Phrame list members, I have not used PHP's OO extensively. As I understand, PHP is different than most other languages in that objects assignments are copies of the object rather than references to the object by default, which contrasts with most other OO languages (and I believe PHP5 is changing this behavior). If this behavior is correct, should most of the functions in phrame be explicitly defined as by reference? For example, in the Action class, should we: class Action extends Object { function perform(&$actionMapping, &$actionForm) {} } Also, where a method returns an object, should it be: return &$object; ?? Does anyone have knowledge in this regard? Thanks, Jason __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |