|
From: | James Crotinger |
Subject: | RE: [pooma-dev] Particle Attrib Access |
Date: | Thu, 29 Mar 2001 13:04:27 -0800 |
Pooma 2 Array's do not use operator[] for element access. This is primarily because it doesn't work in multiple dimensions (to get C-like arrays using a[i][j] you have to have a[i] return a proxy that then causes evaluation to happen when the next subscript is seen - as you know, r1 did this. It was a pain.). We could have special cased 1D, but decided that it was better to be consistent across all dimensionalities.
Jim
---------------------------------------------------
James A. Crotinger
Software Research Scientist
Proximation, LLC
-----Original Message-----
From: Steve Nolen [mailto:address@hidden]
Sent: Thursday, March 29, 2001 1:20 PM
To: Pooma
Subject: [pooma-dev] Particle Attrib Access
Why are the particle attributes (DynamicArray's) only accessible through
operator() and not operator[], too?
SomeParticle.event(i) --- works
SomeParticle.event[i] --- doesn't
[Prev in Thread] | Current Thread | [Next in Thread] |