On Thu, 20 Jun 2002 11:11:39 -0600 (MDT), Luke Palmer wrote: > > If the hyperness of a vmethod depends on the type of PMC it belongs to, we > > need to force every operand to a specific type (scalar or list/array), even > > if it looks like it's already the right type: > > > > $r = \@a; # Or is it just $r=@a ? > > $r + 3; > > What the hell? I'm confused here. What are you trying to do? > > > We don't want to accidentally turn that into a hyperplus on @a's PMC, when > > it should really be a plus on the scalar version of @a. > > Which is a reference. You're adding to a reference? You can't do that > (or does it somehow scalarify to the length or something?).
I was thinking it would be the length. Apocalypse 2 doesn't mention this explicitly, but mentions that +%hash will return the number of elements. It should be safe to assume that +@array does the same. -- Peter Haworth [EMAIL PROTECTED] "If you are going to have delusions, you may as well have really good ones" -- Marcus Cole, B5