[Helma-user] __defineGetter__
Kris Leite
kleite at imcsoftware.com
Wed Apr 4 17:45:31 CEST 2007
Hi Hannes,
>This is something that should be taken car of for the next major
>release after 1.6.
That is fine, I have already have put a modification in my version 1.6
to allow this
since I need to see all properties of a HopObject not just the ones
defined in
the type.properties file.
Thanks for considering the change,
Kris
Hannes Wallnoefer wrote:
> 2007/4/3, Kris Leite <kleite at imcsoftware.com>:
>
>>>> 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
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
>
More information about the Helma-user
mailing list