Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
11.12. Traits Example
In order to apply a trait to an object, the new don keyword is added:
when $c : Customer() then GoldenCustomer gc = don( $c, Customer.class ); end
when
$c : Customer()
then
GoldenCustomer gc = don( $c, Customer.class );
end