On Tue, Jun 05, 2001 at 11:14:29PM +0100, Michael G Schwern wrote:
> my $meth = "foo";
> $obj->$meth();  # $obj->foo();
> 
> I'm probably using the wrong terms.
> 
> This definately can't work if $obj is of a class which is strongly
> typed.        

You would do that in Java by using reflection.  There's nothing about
strong typing which prevents dynamic method calls like this, although
you obviously can only verify the sanity of the call at runtime.

                           - Damien

Reply via email to