This is too off-topic to be starting a thread about.
Please take it elsewhere.
Thanks.

Tim.

On Thu, Jan 30, 2003 at 05:45:00PM +0100, NYIMI Jose (BMB) wrote:
> Is it possible to do something similar with Java ?
> 
> Jos�.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, January 30, 2003 5:39 PM
> > To: NYIMI Jose (BMB); [EMAIL PROTECTED]
> > Subject: RE: Perl OO - Dynamic method call
> > 
> > 
> > IMHO:  This is not bad design, is using a flexible 
> > dynamically binding language.  We use this EXTENSIVELY in 
> > some major enterprise servers we have written in perl. As 
> > long as you trap your exceptions (when the function does not 
> > exist in the class, this results far cleaner code, than a 
> > long if elsif elsif elsif block, that in the end requires you 
> > to type the same name in the if statement, and in the 
> > execution statement.  This allows perl to do all that for you.
> > 
> > Lincoln
> > 
> > 
> > -----Original Message-----
> > From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, January 30, 2003 11:30 AM
> > To: [EMAIL PROTECTED]
> > Subject: Perl OO - Dynamic method call
> > 
> > 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 ... Besides, is such way of 
> > programming an indication of a bad "Class Design" ?
> > 
> > Thanks in advance.
> > 
> > Jos�.
> > 
> > 
> > **** 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.
> > 
> > 
> 

Reply via email to