From: Grzegorz J. <ja...@he...> - 2003-09-18 00:07:36
|
My last e-mail requires a fix. Sorry: On Wed, 17 Sep 2003, Grzegorz Jakacki wrote: [...] > With decomposition into 'Walker' (abstract iface) and 'OpencxxWalker' > (implementation) I can can be sure that whatever (derived) object is at > the end of 'OpencxxWalker*' pointer, it behaves just like 'OpencxxWalker' > object. > > On the other hand (new) 'Walker' is abstract, so there is nothing > like "Walker object", consequently 'OpencxxWalker*' pointer does not like "Walker object", consequently 'Walker*' pointer does not > imply any assumptions about the pointee behaviour. BR Grzegorz > > Surely current walker hierarchy in OpenC++ violates LSP, but it should > not take much to get it straight. > > Have I convinced you? > > Greetings > Grzegorz > > ################################################################## > # Grzegorz Jakacki Huada Electronic Design # > # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # > # tel. +86-10-64365577 x2074 Beijing 100015, China # > # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # > ################################################################## > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |