|
-
February 25th, 2011, 04:26 AM
#6
Re: C++ constructor and good style of programming
The object is (and should be) a singleton. There is need for only one dictionary in program, loaded at beginning and being used till end of program work.
For user the dictionary is read-only. Any data operation (adding/removing, changing) should happen at program loading, not later.
When loading falls, dictionary is invalid and program exits.
Thanks for your answers, I think I'll leave this as it is right now.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|