# aggregation?

- Thread: https://externals.io/message/2807
- Original archive: https://news-web.php.net/php.internals/2807
- Started by Sterling Hughes on 2003-06-26T01:44:42+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2807 — Sterling Hughes — 2003-06-26T01:44:42+00:00

URL: https://externals.io/message/2807#2807

Hey,

Am I right in assuming that aggregation is going to be removed in PHP5?

-Sterling
-- 
"Reductionists like to take things apart.  The rest of us are 
 just trying to get it together." 
    - Larry Wall, Programming Perl, 3rd Edition

---

## #2808 — Wei He — 2003-06-26T01:50:33+00:00

URL: https://externals.io/message/2807#2808 · In reply to: #2807

> Hey,
> 
> Am I right in assuming that aggregation is going to be removed in PHP5?

How could I live without aggregation or multiple inheritance? 

I have a choice, I prefer the latter. But not a 100% MI as I know there 
are a lot of debates on 100% MI. What I would like to see is a 
aggregation like MI. Say 

class foobar extends foo, bar {}

The methods and properties foo has will have higher priority than bar when 
being inherited by foobar. So parent::method will be foo::method. As of 
properties, a class can always initialize its properties in a method or 
even constructor when it is to be extended at a second place.

Bar's constructor will not be called automatically. 

It actually _is_ aggregation right? But without deaggregation and so that 
no exteral hash table outside Zend, hence no bug like in PHP4.

That's my little simple proposal of aggregation-like multiple inheritance. 
Agree?

Wei He

---

## #2812 — Sebastian Bergmann — 2003-06-26T04:38:16+00:00

URL: https://externals.io/message/2807#2812 · In reply to: #2808

Wei He wrote:
> How could I live without aggregation or multiple inheritance?

  Java developers are very happy without these concepts. Why? Because
  they have interfaces. Guess what? We have them, too.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

         http://www.professionelle-softwareentwicklung-mit-php5.de/

---

## #2813 — Sebastian Bergmann — 2003-06-26T04:39:07+00:00

URL: https://externals.io/message/2807#2813 · In reply to: #2807

Sterling Hughes wrote:
> Am I right in assuming that aggregation is going to be removed in PHP5?

  Does it work with ZE2?

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

         http://www.professionelle-softwareentwicklung-mit-php5.de/

---

## #2817 — Zeev Suraski — 2003-06-26T08:08:41+00:00

URL: https://externals.io/message/2807#2817 · In reply to: #2807

At 04:44 26/06/2003, Sterling Hughes wrote:
>Hey,
>
>Am I right in assuming that aggregation is going to be removed in PHP5?

Yep, interfaces replace them...

Zeev
