Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!enea!kth!draken!Urd!newsuser From: newsuser@LTH.Se (LTH network news server) Newsgroups: comp.lang.eiffel Subject: Re: Eiffel suggestion Message-ID: <1988Dec28.142851.12310@LTH.Se> Date: 28 Dec 88 13:28:51 GMT References: <6385@bunny.UUCP> Reply-To: gorel@DNA.LTH.Se (G|rel Hedin) Organization: Computer Science, Lund Institute of Technology, Sweden Lines: 25 >One of the things that drove me nuts about Simula 67 was the absence >of a concatenation operator. >... >Unfortunately, unless I missed something, Eiffel doesn't even have a >CONCAT feature for STRING. It does have prepend and append, but they >change the string they are applied to. The current standard of Simula DOES have a text concatenation operation. This operator always creates a new text object and does not change any of the operands. Both constants and variables can be handled by the operator. Example: begin text x = "Foo"; ! --- Declaration of text constant ---; sysout.outtext(x & "f" & "a" & "h!"); end; This program yields "Foofah!" on the standard output. The current standard of Simula is published as a Swedish national standard document: SS 636114 (ISBN 91-7162-234-9). It is available via all other national standardization bodies. (And via Simula vendors.) --- Gorel Hedin Dept. of Computer Science. Lund Institute of Technology, Sweden gorel@dna.lth.se