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

Re: JWZ on s/Java/Perl/

J. David Blackstone
January 27, 2001 19:12
Re: JWZ on s/Java/Perl/
Message ID:
> J. David Blackstone wrote:
>> 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.

  Well, not exactly like it.  I try to avoid arrays of void* like the
plague. :)  But yes, you're right, it is _possible_ to get that

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

  Yeah, that was one of my disappointments when I finally made the
Java plunge last month.  I kind of expected integers to be objects in
what I had heard was the "perfect, pure" OO language.

jdb Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About