|We don't bite newbies here... much|
Re^2: Conditional inheritance strategyby citromatik (Curate)
|on Oct 27, 2010 at 15:06 UTC||Need Help??|
You are right in your assumptions. My::XML and My::JSON only provide data to the inherited class, no other methods are used (except methods internally used by My::XML or My::JSON).
If so, if you instantiated an instance of the relevant XML or JSON class to just parse the source data; then retrieved the data required by My class; and then allowed the parse instance to be reclaimed as soon as the initialisation of a new My class instance was complete; then your My class instances might be individually smaller. And possibly more efficien,t because of shorter method resolution paths.
Sorry if I misunderstand your. Are you suggesting the following?:
Same for My::JSON
Thank you very much for your comments