what is the better way to store?
|
| View previous topic :: View next topic |
| Author |
Message |
amoralis
Joined: 22 Jun 2006 Posts: 21
|
| I am writing a code that would take in a lot of command line arguments some of them are switches et. al. What is the better way to store all those command line options and pass them between different functions and classes (a global variable [dictionry]) or a class and have member methods ? |
| |
|
|
|
|
Poolkop
Joined: 01 Jun 2006 Posts: 123
|
| amoralis, depends on the situation. both have downsides and conveniences. |
| |
|
|
WarChild
Joined: 24 Feb 2006 Posts: 46
|
| A class would be better for testing/manipilating but would require some more time to be implemented. |
| |
|
|
|
|