Just find out that Java provides something similar but not simple (for me :) )
For those who are interested:
http://java.sun.com/j2se/1.3/docs/guide/reflection/proxy.html

Ok, I stop bothering you all those Java stuff, sorry ;)

José.

> -----Original Message-----
> From: NYIMI Jose (BMB) 
> Sent: Thursday, January 30, 2003 3:29 PM
> To: Jenda Krynicky; [EMAIL PROTECTED]
> Subject: RE: Perl OO - Dynamic method call
> 
> 
> > -----Original Message-----
> > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 30, 2003 3:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Perl OO - Dynamic method call
> > 
> > 
> > From: "NYIMI Jose (BMB)" <[EMAIL PROTECTED]>
> > > This is a little bit Out of Topic but if somebody can give input I
> > > will greatly appreciate!
> > > 
> > > I know that in Perl OO the name of a method can be a
> > variable. Which
> > > end up with code like this:
> > > 
> > > my $obj= new MyClass;
> > > #here the thing
> > > $obj->$method();
> > > 
> > > $method var holding the name of my method.
> > > 
> > > I would like to know if such feature exists in other OO
> > languages like
> > > Java etc ...
> > 
> > I guess you could do something similar in
> > JavaScript/JScript/ECMAScript
> 
> Any idea, if this is possible in Java ?
> 
> > 
> > > Besides, is such way of programming an indication of a
> > > bad "Class Design" ?
> > 
> > Well ... you should not have to do that.
> > 
> > Jenda
> > ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it 
> > comes to wine, women and song, wizards are allowed to get drunk and 
> > croon as much as they like.
> >     -- Terry Pratchett in Sourcery
> > 
> > 
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> **** DISCLAIMER ****
> 
> "This e-mail and any attachment thereto may contain 
> information which is confidential and/or protected by 
> intellectual property rights and are intended for the sole 
> use of the recipient(s) named above. 
> Any use of the information contained herein (including, but 
> not limited to, total or partial reproduction, communication 
> or distribution in any form) by other persons than the 
> designated recipient(s) is prohibited. 
> If you have received this e-mail in error, please notify the 
> sender either by telephone or by e-mail and delete the 
> material from any computer".
> 
> Thank you for your cooperation.
> 
> For further information about Proximus mobile phone services 
> please see our website at http://www.proximus.be or refer to 
> any Proximus agent.
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to