Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] [DSF] SessionType

At 07:55 AM 7/9/2010, Marc Khouzam wrote:
The problem is that your original suggestion added an method to an interface.

interface myInterfae {
  void foo();

class myClass implements myInterface {
  void foo() { }

If I add method bar() to myInterface, myClass will suddenly not compile anymore
because it _must_ implement bar().

BTW, you can add a method to an interface that is @noextend and @noimplement without breaking backwards compatibility. I.e., if the interface is strictly something a client invokes, then a new method is a backward compatible extension of the interface.

Back to the top