Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!hub.ucsb.edu!eiffel!stephan From: stephan@eiffel.UUCP (Philippe Stephan) Newsgroups: comp.lang.eiffel Subject: Re: Extension of STRING class Summary: Use share from STRING Message-ID: <342@eiffel.UUCP> Date: 8 Jun 90 17:24:39 GMT References: <1990May25.000500.7492@asterix.drev.dnd.ca> <120019@gore.com> <1713@prles2.prl.philips.nl> Organization: Interactive Software Engineering, Santa Barbara CA Lines: 14 In article #869, Monique Roosen (roosen@cst.philips.nl) asks: > Is there anybody out there in Eiffel-land who knows how to extend > the Eiffel STRING class with a feature for example , > Tail(s:String_ext):String_ext to class STRING_EXT > and still have the possibility for an assignment like > n:STRING_EXT ; > n := "TEST". Among the non-acrobatic ways to solve your problem, I would advise: n.share ("TEST"); instead of the assignment, which is of course impossible here.