Re: __defineGetter__

"Hannes Wallnoefer" <[email protected]>
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
2007/4/3, Kris Leite <[email protected]>:
>
> >> The reason this doesn't work is that property inspection from macros
> >> on HopObjects only supports collections and properties defined in
> >> type.properties. Since first and last are not in type.properties, the
> >> resolution failse. Let's think about this restriction.
> >>
> >>
> > Any more thoughts on this? I would say +1 for dropping this restriction.
> > I never fully understood its purpose anyways.
> >
>
> +1 for dropping!  I just came across this issue yesterday when I was
> trying to
> enumerate over a HopObject that had properties other than what was defined
> in type.properties file.  I was very confused on what was going on.
>

That's actually quite a different issue than exposing properties to
skins. I'd actually like to have this changed, but messing with the
semantics of methods without knowing all the consequences on existing
code this shortly before a release is a no-no.

This is something that should be taken car of for the next major
release after 1.6.

hannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.