Test if a peer has an operation/property

Hi.

I probe all peer of a component to know who have such property/operation.

The getOperation prints a warning if the operation does not exist. But the getProperty doesn't.

It's not very important, but it would be better if all the getSomething could print a warning, or, if we could have hasSomething methods (as in 1.X).

What do you think ?

Test if a peer has an operation/property

On Thursday 06 January 2011 11:36:22 paul [dot] chavent [..] ... wrote:
> Hi.
>
> I probe all peer of a component to know who have such property/operation.
>
> The getOperation prints a warning if the operation does not exist. But the
> getProperty doesn't.
>
> It's not very important, but it would be better if all the getSomething
> could print a warning, or, if we could have hasSomething methods (as in
> 1.X).
>
> What do you think ?

I agree here.

Peter

Test if a peer has an operation/property

Hi.

I probe all peer of a component to know who have such property/operation.

The getOperation prints a warning if the operation does not exist. But the getProperty doesn't.

It's not very important, but it would be better if all the getSomething could print a warning, or, if we could have hasSomething methods (as in 1.X).

What do you think ?