|
|
Am 16.08.2012 01:40, schrieb Darren New:
> On 8/14/2012 4:52, clipka wrote:
>> I guess you've heard of code re-use through delegation, no?
>
> Then every type of screen item has to delegate that call to something
> else, and every time the superclass adds a function, then all subclasses
> have to write code to delegate it properly.
You're presuming here that GUI item superclasses keep growing new
functions. That's not a necessary prerequisite for a GUI library though.
>> I do agree that at least inheritance among interfaces would be nice to
>> have,
>
> I don't know of any language that implements inheritance and interfaces
> that doesn't allow interfaces to inherit. Quite honestly, that would
> make almost no sense.
I totally agree that it's a good choice to not design a language that
way. But still, even with such a language you /could/ write a GUI library.
Post a reply to this message
|
|