From: Stefan S. <se...@sy...> - 2004-05-28 12:41:49
|
Grzegorz Jakacki wrote: >>hmm, ok, once I understand how the TypeInfo class works ;-) >>In synopsis I only use the Encoding class, and the docs state to >>keep TypeInfo in sync whenever Encoding is changed, so I just >>followed the example... >>I'll have a closer look. > > > I never had time to understand if this is really necessary. Looks like a > gratituous coupling. well, the dependencies aren't gratituous. As we discussed, the 'mop' classes all depend on the 'parser' classes, and that's particularly true for the 'TypeInfo' / 'Encoding' relationship. That said, it may be possible to better encapsulate the encoding stuff inside the Encoding class such that changes as the one I applied doesn't require a code change in the TypeInfo. Regards, Stefan |