RE: Perl OO - Dynamic method call

2003-01-31 Thread david
Nyimi Jose wrote: > Like in Perl, "Reflection" is also possible in Java: > > http://developer.java.sun.com/developer/technicalArticles/ALT/Reflection/index.html > > Specially the following section interested me : > > Invoking Methods by Name > > So far the examples that have been presented al

RE: Perl OO - Dynamic method call

2003-01-31 Thread NYIMI Jose (BMB)
11:09 PM > To: [EMAIL PROTECTED] > Subject: RE: Perl OO - Dynamic method call > > > Nyimi Jose wrote: > > > Just find out that Java provides something similar but not > simple (for > > me > > :) ) For those who are interested: > > http://java.sun.com

Re: Perl OO - Dynamic method call

2003-01-30 Thread R. Joseph Newton
"NYIMI Jose (BMB)" wrote: > 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(); ObjectInstanceName.Method(param1, param2,...); I would not try to extrapolate Perl hacks to any language w

RE: Perl OO - Dynamic method call

2003-01-30 Thread david
Nyimi Jose wrote: > 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 ;) > good reading! i wasn't aware of the Dy

RE: Perl OO - Dynamic method call

2003-01-30 Thread david
Nyimi Jose wrote: >> I guess you could do something similar in >> JavaScript/JScript/ECMAScript > > Any idea, if this is possible in Java ? > i don't think this's possible with Java. during compilation time, Java must resolve all method calls or it won't compile. but then you might be asking

RE: Perl OO - Dynamic method call

2003-01-30 Thread 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 &g

FW: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
Below, an input I have got from dbi-users forum. 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

RE: Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
> -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]> > > Thi

Re: Perl OO - Dynamic method call

2003-01-30 Thread Jenda Krynicky
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->$

Perl OO - Dynamic method call

2003-01-30 Thread NYIMI Jose (BMB)
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