[BLACKBOX] Questions about inheritance

From: [at]} <Rainer>
Date: Sat, 12 Mar 2011 10:59:25 +0100

----boundary-LibPST-iamunique-1159789171_-_-
Content-type: text/plain

Hi all,
when sending this mail the first time I clicked the wrong button, so
this mail went to Chris Burrows exclusively.
Therefore I resend it, this time hopefully to all BB users.
Best regards, Rainer


Hello,
thanks a lot for the links to the books.
I have both of them available. Mössenböcks book is really great, and
I agree in that Clemens Szyperski's book is a hard read (at least for
me) but very valuable too.

Unfortunately I was not able to find an answer to my question
concerning CP. Perhaps I should issue my question more precisely:
I want to avoid implementation inheritance in CP programs. What are
the language features I have to rule out ?
Is it just the super call which I have to avoid or something else ?


Best regards,
Rainer


Am 09.03.2011 um 23:31 schrieb Chris Burrows:


>> -----Original Message-----
>> From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>> Rainer Neubauer
>> Sent: Thursday, 10 March 2011 2:50 AM
>> To: BLACKBOX{([at]})nowhere.xy
>> Subject: [BLACKBOX] Questions about Inheritance
>>
>> Hi all,
>> the BB heavily relies on OO concepts. Unfortunately I don't
>> understand many of them.
>> The docu suggests to avoid implementation inheritance and to
>> use object composition instead. But what are the language
>> features which cause implementation inheritance (i.e. which
>> should be avoided) ? Is it just the super call or something else ?
>>
>> I would appreciate if somebody could give me some hints in
>> understanding these things or perhaps some links to
>> explanatory texts to read.
>>
>
> To help understand OO concepts in an Oberon-language context I highly
> recommend Hanspeter Mössenböck's excellent book: "Object-Oriented
> Programming in Oberon-2":
>
> http://www.ssw.uni-linz.ac.at/Research/Books/
>
> I believe it is out of print but Amazon currently has one used and
> two new
> copies.
>
> If you want a taste of what is in the book read his earlier paper
> with the
> same title which was presented at the 2nd International Modula-2
> Conference.
> It can be downloaded in Postscript format from:
>
>
http://www.ssw.uni-linz.ac.at/Research/Papers/Moe91.html
>
> Another book that explictly mentions both implementation
> inheritance and
> object composition is "Component Software - Beyond Object-Oriented
> Programming" by Clemens Szyperski (a key contributor to both
> BlackBox and
> Component Pascal):
>
> http://research.microsoft.com/~cszypers/Books/component-software.htm
>
> However, I always hesitate to personally recommend this one as I
> find it
> difficult to comprehend,
>
> Regards,
> Chris
>
> Chris Burrows
> CFB Software
> Astrobe v3.3: ARM Oberon-07 Development System
> http://www.astrobe.com
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1159789171_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBIaSBhbGwsXHBhcg0Kd2hlbiBz
ZW5kaW5nIHRoaXMgbWFpbCB0aGUgZmlyc3QgdGltZSBJIGNsaWNrZWQgdGhlIHdyb25nIGJ1dHRv
biwgc28gIFxwYXINCnRoaXMgbWFpbCB3ZW50IHRvIENocmlzIEJ1cnJvd3MgZXhjbHVzaXZlbHku
XHBhcg0KVGhlcmVmb3JlIEkgcmVzZW5kIGl0LCB0aGlzIHRpbWUgaG9wZWZ1bGx5IHRvIGFsbCBC
QiB1c2Vycy5ccGFyDQpCZXN0IHJlZ2FyZHMsIFJhaW5lclxwYXINClxwYXINClxwYXINCkhlbGxv
LFxwYXINCnRoYW5rcyBhIGxvdCBmb3IgdGhl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mar 12 2011 - 10:59:25 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:17 UTC