Hello,
On 12/31/1969 09:00 PM, Michael Lauzon wrote:
Since PHP5 is going to feature OOP (Object Oriented Programming), will that mean PHP6 will feature AOP (Aspect Oriented Programming)...so far it seems AOP is only being used for Java at the moment; but hopefully general programming and scripting languages will start using them as well?!
I don't know what do you think OOP is but PHP supports it since PHP 3.
AOP is not a feature of any language but rather an artifact to add or remove code that implements certain aspects. This usually requires a compiler or a code processing tool to enable the aspects you are interested. There is nothing in Java that makes this possible that would not be possible in PHP.
As a matter of fact there is an Aspect Oriented Programming tool named Metastorage that generates DAO (Data Access Object) classes that lets you control which aspects you want to build into your DAO classes. For instance, if you do want a function in the generated classes to delete objects, you have to explicitly request it. Otherwise the class will not feature that aspect. This leads to much more optimized code that does not feature aspects that are not needed.
This tool generates code that runs on PHP 4 or better. You may find more about it here:
http://www.meta-language.net/metastorage.html
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php