Larry wrote:
You can also create your own anonymous class at run time that incorporates both roles simultaneously and disambiguates them.
Or, presumably, you could use an anonymous role directly:
$driver does role {
does SanitationEngineer;
does RaceCarDriver; method drive {
given .vehicle {
when Truck { goto &SanitationEngineer::drive }
default { goto &RaceCar::drive }
}
}
};Damian
