Mmmmm, I don't see it clearly either...

I *think* the correct thing to do is what Max pointed out, and make
Demeter happy on the way.  What if materialColetado's structure
changes? If you use that level of indirection, you'd have to change
your fields declaration AND any other code that needs that attribute
from an "analise" instance, if you code it as a property, you just need
to modify the getter.

I think it wouldn't be *that* easy to implement either, as you'd have
to traverese the full path to the desired attribute... what if one of
the intermediary attributes is a callable? (well, ok, it could be a
property...). it remind's me of Cheetah's name lookup mechanism (though
maybe my memory is not good at all :). I think it's too much magic for
just a little datagrid ;)

Disclaimer: Haven't read the code before writing the last paragraph so
I might be *way* wrong... :D

Regards,
Alberto

Reply via email to