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

> 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

Reply via email to