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
- Re: Properties and stricture Daniel S. Wilkerson
- Re: Properties and stricture Daniel S. Wilkerson
- Re: Properties and stricture Michael G Schwern
- Re: Properties and stricture John Porter
- Re: Properties and stricture Peter Scott
- Re: Properties and stricture John Porter
- DANGER! ADVOCACY! (was Re: Properties and stric... Michael G Schwern
- Re: Properties and stricture Michael G Schwern
- Re: Properties and stricture Daniel S. Wilkerson
- Re: Properties and stricture Michael G Schwern
- Re: Properties and stricture Damien Neil
- Re: Properties and stricture Piers Cawley
- Re: Properties and stricture John Porter
- Re: Properties and stricture Me
- Re: Properties and stricture David L. Nicol
- Re: Properties and stricture Dave Storrs
- Re: Properties and stricture Michael G Schwern
- Re: Properties and stricture Michael G Schwern
- Re: Properties and stricture Michael G Schwern
- Re: Properties and stricture John Porter
- Re: Properties and stricture John Porter