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

Re: JWZ on s/Java/Perl/

John Porter
January 27, 2001 19:03
Re: JWZ on s/Java/Perl/
Message ID:
J. David Blackstone wrote:
> > And in related news, it's a total pain that one can't iterate over the
> > contents of an array without knowing intimate details about its
> > contents: you have to know whether it's byte[], or int[], or Object[].
> That's one nice thing about Perl; you can foreach over
> an array of all sorts of different things.  In fact, being able to
> just have an array of all sorts of different things is something Perl
> still has over Java, C, and the like.

It's not that big a deal.  An array in Perl is like an array of Object
in Java, or an array of void* in C.

Like jwz said, if only they had done TRT and made intrinsics 
inherit (or appear to) from Object, it wouldn't be an issue
in Java either.

John Porter

So take a pointed stick and touch Piggy's eyes
He's gonna turn and leave you a big surprise Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About