On Thu, Apr 22, 2004 at 10:29:39AM -0400, Aaron Sherman wrote: : That said, I now see why hyper goes in Parrot... maybe. It depends on : how dynamic Perl is about lazy arrays (e.g. "my int @foo = 1..Inf")
As dynamic as it needs to be. The built-in array type has to know how much of the array is really there already, and how to build the rest of the array on demand. : and what happens when I: : : my int @foo = 1..3; : $foo[0] = URI::AutoFetch.new("http://numberoftheweek.math.gov/"); : : If that's polymorphic, we're hosed. If it's an auto-conversion, then : we're good. I like the polymorphic version for a lot of reasons, but : I'll understand if we can't get that. It's auto-conversion. An "int" declaration is a strong guarantee that the thing is never going to be required to store a random scalar. On the other hand, and "Int" declaration merely requires that the scalar stored "does" Int. Larry