develooper Front page | perl.perl6.language | Postings from June 2001

Re: Properties and stricture

Thread Previous | Thread Next
From:
John Porter
Date:
June 6, 2001 07:28
Subject:
Re: Properties and stricture
Message ID:
20010606102839.C7421@min.net
Michael G Schwern wrote:
> It will have to go for strict classes.  @ISA will have to be locked.

"strict classes"?


> my $meth = "foo";
> $obj->$meth();  # $obj->foo();
> 
> This definately can't work if $obj is of a class which is strongly
> typed.        

"strongly typed class"?



> This can still work with strong typing if:
>     1)  The class only plays with its own symbol table
>     2)  It does it at compile time.

I agree that an (optional) strong-typing mechanism would
be nice to have in perl6.  However, I don't think it
should not have a run-time component.
I.e. "strong typing can only be done at compile time".
We'll do what we can at compile time, but this is Perl...

-- 
John Porter


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