Hello,

I have a question about Trait.

Is it ok, in the design point of view, to use them to force an object to implement an interface?

Like that it would be possible to check (via an #assert: for example) if a class provides the interface required.

I read some things I found on the net about Traits and already used TComparable but I never created one myself and I am not sure to understand this concept entirely.


Thanks in advance!

Julien


Reply via email to