develooper Front page | perl.perl6.internals | Postings from February 2002

Re: PMCs, setting, and suchlike things

Thread Previous | Thread Next
From:
Melvin Smith
Date:
February 14, 2002 07:59
Subject:
Re: PMCs, setting, and suchlike things
Message ID:
OF611C5B15.3BF7F3A5-ON85256B60.00580FF6@raleigh.ibm.com
                                                                                                                                           
                      Alex Gough                                                                                                           
                      <alexander.gough@st-hughs.ox        To:       Melvin Smith/ATLANTA/Contr/IBM@IBMUS                                   
                      ford.ac.uk>                         cc:       perl6-internals@perl.org                                               
                                                          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
melvins@us.ibm.com :: 770-835-6984


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About