class Camera {} class MobilePhone {} class CameraPhone is Camera is MobilePhone {} say CameraPhone.^mro; # undefined type object say CameraPhone.new.^mro; # instantiated object
CameraPhone() Camera() MobilePhone() Any() Mu() CameraPhone() Camera() MobilePhone() Any() Mu()
The .^mro is not an ordinary method call, but a call to the object's metaobject that returns the method resolution order for this type.
.^mro
Last updated 1 year ago
Was this helpful?