OOlib icon indicating copy to clipboard operation
OOlib copied to clipboard

Enable implemented class to call implemented procedures in `protocol`

Open glassesneo opened this issue 3 years ago • 1 comments

protocol SomeProtocol:
  proc implemented(x: int) =
    return x

class SomeClass impl SomeProtocol:
  discard

let some = SomeClass.new()

some.implemented(5)

glassesneo avatar Oct 23 '22 02:10 glassesneo

  • how to resolve the conflict between a protocol that has implemented procs and one that doesn't
  • whether a class can override implemented procs

glassesneo avatar Jun 03 '24 04:06 glassesneo