Re: cluster and class name clash
José Bollo <[email protected]> Fri, 5 Aug 2005 19:22:45 +0200
| Newsgroups | gmane.comp.lang.eiffel.smalleiffel |
|---|---|
| Message-ID | <[email protected]> |
Le vendredi 5 Août 2005 15:58, alan lamer a écrit : > hi all, > > Here is a question about using clusters with > SmartEiffel. > > Assume i want to reuse eiffel clusters someone else > wrote. Let's call them cluster1 and cluster2. > Now Assume both of them define a class with the same > name, eg STATE. > > How should i procede i my own eiffel classes code to > use the STATE classes of both clusters? What is the > valid syntax to avoid class name clash? > What i allready found on the web is : > - in the Bertrand Meyer homepage, a note from year > 2000 was about using C++-like '::' operator > - in the current ETL3 draft, chapter 3 is about > using a Java-like notation, ie cluster1.STATE and > cluster2.STATE > I didn't found anything on this topic in the > SmartEiffel documentation, but i should have missed > some points since Eiffel is said to care about > software quality *and* reuse ! > > > thanks, here is a kind of answer to your question: ETL 1992 2nd edition page 523 chapter "specifying system with lace", section "adapting class names". it is old so i dont know if it is still actual. Honnestly your question is really good. It is one of the things that are missing to smarteiffel (i don't know how ISE support it). josé