develooper Front page | perl.perl6.language.data | Postings from September 2000

Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices

Thread Previous | Thread Next
From:
Karl Glazebrook
Date:
September 23, 2000 08:33
Subject:
Re: RFC 231 (v1) Data: Multi-dimensional arrays/hashes and slices
Message ID:
39CCCD2A.D7D1B279@pha.jhu.edu
c.soeller@auckland.ac.nz wrote:
> 
> Ilya Zakharevich wrote:
> > ...Do you say you are confused by using vectors (=scalars) instead of
> > arrays?
> 
> I'm not having a problem with that personally but *many* users of PDL
> have complained about being confused by this.
> They assume ndim == array == perl array.
> 
>   Christian

Yes this is the point. I guess another way of looking at it is
saying that 3*@a operates in a list context not a scalar context
and that we will define the behaviour of '*' in this context.
(Currently it is not defined, hence @a is converted to scalar(@a)).

Karl

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About