From: Eric B. <er...@go...> - 2001-06-07 00:24:30
|
Andreas Leitner wrote: > > foo ... main cluster of GOBO-sub-library "foo" > foo/interfaces ... all interfaces subclusters go in here > foo/interfaces/bar ... bar is an interface-subcluster > foo/interface/foobar ... foobar is an interface-subcluster > foo/impl ... all implementations go in here > foo/impl/win32 ... the win32 impl > foo/impl/win32/foo .. the "foo" impl for win32 > foo/impl/win32/foobar .. the "foobar" impl for win32 > foo/impl/unix/foo ... the "foo" impl for unix > foo/impl/unix/foobar ... the "foobar" impl for unix > > Here the user mounts (remember a mount, also mounts the sublcusters) > > foo/interfaces > foo/impl/${PLATFORM} > > Q.E.D. > > What do you think? I think something is missing in your bridge pattern. What interface are you talking about in foo/interfaces (BTW, I would prefer foo/interface (singular)): user- interface or the deferred classes parents of the classes in foo/impl/${PLATFORM}/*? If I understand correctly, you just want to mount: foo/interfaces foo/impl/${PLATFORM} instead of: foo/bar foo/foobar foo/impl/${PLATFORM} Personally I have the feeling that this extra directory 'interface' is artificial. If you consider XM_PARSER to be part of the "interface" of the xml library, then DS_LINKED_LIST is part of the "interface" of the container library as well, and as such we should also add this dummy directory to the container library: structure/interface/list structure/interface/set structure/interface/table ... So it looks like the only reason why you want to add this extra directory is to save typing characters in the XACE file rather than to get a better directory structure. Is it really a good reason? > Here the user mounts (remember a mount, also mounts the sublcusters) Could you have an option in XACE which excludes some specified clusters from a library? This looks like a better solution to me if you want to save typing characters: mount foo exclude impl/unix I'll let you find an XML syntax for that, but I hope you got the idea. -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |