Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Associated Arrays?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
andrew.




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
DemonWasp




PostPosted: 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.
andrew.




PostPosted: 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.
Tony




PostPosted: 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).
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: