Ce contenu n'est pas disponible dans la langue sélectionnée.
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