[PHP-DEV] object-method() chaining

2001-03-06 Thread The Doctor What

I'm currently working on the DB project from h*ll.   Why? Because
a lot of the tables of the normalized DB are mapped into objects and
PHP's object support questionable at best.

I've worked around the lack of multiple inheritance, and some of the
other problems.  But the inability to do something as simple as:
object-MethodThatReturnsAnotherObject()-method() is very
troublesome

I cannot express how error prone it is to have to create tons of
temporary variables.

I can already hear people saying stuff like: "Why don't you use the
attribute (or variable) directly?"

Because in most cases MethodThatReturnsAnotherObject() does work
before it hands me the object, and it's important to my project.

If someone has a good example of an object framework around a
normalized database, I'd love to see it.  Otherwise, can someone
tell me where in the flipping PHP4 code is this limitation coded?

Dislaimer: I'm irrate.  This problem has been grating against me for
4 weeks straight now.

I have a bug entered into the bug database:
http://bugs.php.net/bugs.php?id=7515

I'd be happy to fix it if someone can point me to the right place.

Ciao!

-- 
installs Windows NT!"
Orlando (on Slashdot)

The Doctor What: "What, Doctor What" http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] object-method() chaining

2001-03-06 Thread Andi Gutmans

Hi,

We are aware of this limitation. I am trying to think of a good way to 
solve this and it isn't trivial. I'll try and come up with something.

Andi

At 02:41 PM 3/6/2001 -0600, The Doctor What wrote:
I'm currently working on the DB project from h*ll.   Why? Because
a lot of the tables of the normalized DB are mapped into objects and
PHP's object support questionable at best.

I've worked around the lack of multiple inheritance, and some of the
other problems.  But the inability to do something as simple as:
object-MethodThatReturnsAnotherObject()-method() is very
troublesome

I cannot express how error prone it is to have to create tons of
temporary variables.

I can already hear people saying stuff like: "Why don't you use the
attribute (or variable) directly?"

Because in most cases MethodThatReturnsAnotherObject() does work
before it hands me the object, and it's important to my project.

If someone has a good example of an object framework around a
normalized database, I'd love to see it.  Otherwise, can someone
tell me where in the flipping PHP4 code is this limitation coded?

Dislaimer: I'm irrate.  This problem has been grating against me for
4 weeks straight now.

I have a bug entered into the bug database:
http://bugs.php.net/bugs.php?id=7515

I'd be happy to fix it if someone can point me to the right place.

Ciao!

--
installs Windows NT!"
 Orlando (on Slashdot)

The Doctor What: "What, Doctor What" http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] object-method() chaining

2001-03-06 Thread The Doctor What

* Andi Gutmans ([EMAIL PROTECTED]) [010306 14:50]:
 Hi,
 
 We are aware of this limitation. I am trying to think of a good way to 
 solve this and it isn't trivial. I'll try and come up with something.
 
 Andi

I'll send you something Rackspace-ish if you solve this.  Currently,
this problem is driving me bonko.  Feel free to talk things out
with me.  I've looked at the zend parser and I couldn't begin to
figure it out, never mind other issues.

To me, it seems like the whole way of returning objects is broken,
but that's just from putzing around with stuff.

Again, thank you for looking at this.

Ciao!

-- 
"No one will ever win the battle of the sexes; there's too much fraternizing with the 
enemy.."
-- Henry Kissinger

The Doctor What: "What, Doctor What" http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]