Originally posted by Andreas Reuss:
[...] I also have implemented Singleton pattern on Data, but in a way that ensures you only have one Data-instance for each file. [...] Do you think this is bad design?
Andreas, you answered your own question really. You encoded a
fundamental constraint of the implementation -- fundamental, because things go horribly wrong when more than one copy of Data acts on a file -- into your architecture. This is entirely the right thing to do.
- Peter
[ November 16, 2002: Message edited by: Peter den Haan ]