Bug #11567: True Dynamic Binding and Public/Private
| From: | Mike dot Eggleston at michaelsmacshack dot com | Date: | Tue, 19 Jun 2001 19:10:06 +0000 |
| Subject: | Bug #11567: True Dynamic Binding and Public/Private | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57296@lists.php.net to get a copy of this message | ||
From: Mike.Eggleston@michaelsmacshack.com
Operating system: Linux
PHP version: 4.0.5
PHP Bug Type: Feature/Change Request
Bug description: True Dynamic Binding and Public/Private
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
Mike.Eggleston@michaelsmacshack.com
--
Edit Bug report at: http://bugs.php.net/?id=11567&edit=1