Information générale
Catégorie:
Programmation Orientée Object
Versions des environnements
Hi Cetin,
I wonder when could ACLASS() return an empty (or no) array?
If the second parameter passed is no object, ACLASS throws an error,
if the second parameter passed is an object, it will have at least a baseclass, therefore one element minimum. That it is an object is already tested.
It's personal taste, I find David's function version better readable. Perhaps your's would be if adding one or two comments and definitions for the constants you pass to ASCAN. The performance issue of returning a result of an expression without first storing to a variable should be unimportant here. On the other hand that could be better named to eg llIsFamily.
Bye, Olaf.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement