develooper Front page | perl.perl5.porters | Postings from August 1999

Re: Purpose of Strong Typing.

Thread Previous | Thread Next
From:
Ed Peschko
Date:
August 27, 1999 19:47
Subject:
Re: Purpose of Strong Typing.
Message ID:
19990828024722.AAA10890@csgsystems.com
On Fri, Aug 27, 1999 at 07:06:28PM -0400, Ilya Zakharevich wrote:
>Ed Peschko writes:
>> >> 1. compile-time type checking
>> >Impossible.  You need to chase ISA tree *back* to implement this.
>> 
>> How about  'use ISA' or 'use BASE' and hooks inside both?
>
>Do you assume that all the modules which ISA-Mail are already loaded
>when you compile
>
>  my Mail $m = <MAILBOX>;
>  $m->oopen();
>
>Ilya

I would assume that this would be a limit of strong typing; if you want to do 
stuff like determining your @ISA at runtime, or using 'require A; A->import'
you are welcome to do so but don't expect strong typing to be of any help.

Otherwise, I see very little point to it if no compile time checks are 
available.

Ed

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