For Programmers: Free Programming Magazines  


Home > Archive > Tcl > September 2005 > Re: when is it apt to use classes in preference to only arrays and









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: when is it apt to use classes in preference to only arrays and
Bryan Oakley

2005-09-29, 7:01 pm

vikas wrote:
> hey i am working on a project in which i will be requiring plenty of
> different parameters to be associated with similar objects. what is a
> better idea, to use multidimentional arrays or classes?
>


The answer is "it depends".

As a general rule, use what you are most familiar with. However, both
arrays and classes (and OO packages as a whole) have strengths and
weaknesses. Without knowing what your requirements are (memory? Speed?
maintainability? ...), it's hard to say.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com