On Thu, Oct 08, 2009 at 10:06:06AM -0500, Jesse Luehrs wrote: > Again, if the robot was a delegate rather than a role, you'd have > $thing->draw_with_arm delegated to $thing->robot_arm->draw, but > $thing->robot_arm->draw would still be available to be called > separately:
Another thing about delegation that you might like is that delegation will throw a conflict error for any method already existing in the current class (not superclasses), so it gets rid of that "class silently overrides role methods" issue you've been having(: -doy