Associated Arrays?
Author |
Message |
andrew.
|
Posted: Mon Apr 13, 2009 8:45 pm Post subject: Associated Arrays? |
|
|
Hey guys,
I was just wondering if it is possible to have associated arrays in Turing.
Thanks,
Andrew |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Mon Apr 13, 2009 8:49 pm Post subject: RE:Associated Arrays? |
|
|
Associated arrays meaning two arrays of the same length, holding various data corresponding to a series of objects? Yeah, of course.
But it's better to use type and record. |
|
|
|
|
![](images/spacer.gif) |
andrew.
|
Posted: Mon Apr 13, 2009 8:51 pm Post subject: RE:Associated Arrays? |
|
|
That's what I mean. Yeah, I've used both type and record before, but they don't seem as good as the associated arrays I've been reading about. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Mon Apr 13, 2009 8:56 pm Post subject: RE:Associated Arrays? |
|
|
uhh... parallel arrays are an anti-pattern (that is, an example of something that you shouldn't be doing). |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|
|