ID: 11567
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
function drawMe()
{
if( 2 == func_num_args() ) {
doStuff( func_get_arg(0) , func_get_arg(1) ) ;
} else {
doStuff( $defaultX , $defaultY ) ;
}
}
private vars/methods would be good... :)
Previous Comments:
---------------------------------------------------------------------------
[2001-06-19 15:10:06] [EMAIL PROTECTED]
Ok Folks. I am really happy with PHP thus far. However to make it a true Object
Oriented Language you absolutly need Dynamic binding. This would be such a huge boon
for us developers who love to work within classes. Such as:
// Inside the class Circle
function DrawMe() {
// Getting Ceter Coords..
DrawMe($centX, $centY);
}
function DrawMe($x, $y) {
// Draws the circle at $x, $y
}
// End of code demo
This kind of ability can be extremely huge, if you use it right. Also, it allows for
developers to make a module extremely flexiable and powerful.
Secondly, I think that we are missing public and private sections of the OOP world.
In the above example, I would have the functions public, and the data structures
inside of it totally hidden (or private) so the programmer who is using my include
just has to deal with the interface, and can't touch the actual data. That is
strength and beauty of encapsulation.
I just thought you may want to hear this, and I am hoping to hear from you guys (and
gals) that you are hard at work to implement it and it is coming soon.
Thanks for reading my rant!!
Mike Eggleston
AmeriGroup
[EMAIL PROTECTED]
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11567&edit=2
--
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]