Open glassesneo opened 3 days ago
protocol Animal: proc eat protocol CanFly: proc fly class Cat impl Animal: proc eat = discard # automatically defined proc toProtocol(): Animal class Bird impl (Animal, CanFly): proc eat = discard proc fly = discard # automatically defined proc toProtocol(): Animal proc toProtocol(): CanFly proc toProtocol(): Animal & CanFly
converter may be good for it
converter
& operator in https://github.com/glassesneo/OOlib/issues/140
&