Jump to content

Talk:Delegation (object-oriented programming)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Giese (talk | contribs) at 09:37, 27 September 2006 (Language Feature example wrong?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Old definition

Shouldn't the old definition go under the modern one? Most people don't read more than one page, which would mean only the old definition is read. - September 26th 2005

Good point. Wouter Lievens 10:20, 26 September 2005 (UTC)[reply]

Third Definition

The third definition, as given in [Taivalsaari, 1996] is missing. Shall I add it? Wouter Lievens 19:37, 1 May 2005 (UTC)[reply]

Now that I think of it, the definition is equivalent. Wouter Lievens 14:35, 11 May 2005 (UTC)[reply]

Language Feature example wrong?

I don't get this. If a in class B were a usual field, this in A::foo() would refer to the a object, so you'd get "a.bar" printed. With the delegation language feature, it should be "b.bar", since this still refers to object b. Giese 09:37, 27 September 2006 (UTC)[reply]