[pooma-dev] Particle Attrib Access
James Crotinger
JimC at proximation.com
Thu Mar 29 21:04:27 UTC 2001
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:drnuke at lanl.gov]
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010329/34844064/attachment.html>
More information about the pooma-dev
mailing list