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

Re: Properties and stricture

Thread Previous | Thread Next
From:
John Porter
Date:
June 5, 2001 09:46
Subject:
Re: Properties and stricture
Message ID:
20010605124652.B4696@min.net
Michael G Schwern wrote:
> Prototypes don't work on methods.  And I wouldn't hold them up as
> being anything but a mediocre hack.  Its not really type checking.

It's not just prototypes.

% perl -e '$r=\%h; print @$r'
Not an ARRAY reference at -e line 1.

Of course, that's a run-time check, but that's a consequence
of perl's dynamic nature.

-- 
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