Alex Gough <[EMAIL PROTECTED] To: Melvin Smith/ATLANTA/Contr/IBM@IBMUS ford.ac.uk> cc: [EMAIL PROTECTED] Subject: Re: PMCs, setting, and suchlike things 02/14/2002 10:48 AM
>On Thu, 14 Feb 2002, Melvin Smith wrote: > >> >my Dog $spot = Dog.new("waggly tail"); >> >$spot = Cat.new(); >> >> In this case all types are known at compile time. Why would >> we relegate this to a runtime vtable check or bit flag? > >There's no reason to suspect that Dog::new will actually return a Dog >object or that Cat::new won't, that's just not Perl. If we're to Gotcha, I was letting my C++ get in the way. :) -Melvin Smith IBM :: Atlanta Innovation Center [EMAIL PROTECTED] :: 770-835-6984