[Modeling-users] access of custom object properties
Status: Abandoned
Brought to you by:
sbigaret
From: Mario R. <ma...@ru...> - 2003-04-24 12:53:39
|
hi, what does everyone do when wanting to systematically access all, or a subset of, property values of a custom object to something else, such as looping to generate html. What is the cleanest and most efficient way to a) know the list of class property names, and b) to loop over them to obtain their value (without having to do dirty tricks such as calculating the get method name for the property, and then eval'ing or calling that in some way, or accessing directly the instance private attribute for the property). Also, is moving to new-style properties foreseen, or are we stuck with support for 2.1 for a long time? Or, is it possible to support both new style props, as well as 2.1? Regards, mario |