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
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
"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
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
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
> 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
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
> -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
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->$
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
10 matches
Mail list logo