Xref: utzoo comp.lang.misc:1853 comp.sys.misc:1665 comp.sys.amiga:22693 comp.sys.mac:20217 comp.sys.atari.st:11331 comp.sys.ibm.pc:19015 rec.mag:122 Path: utzoo!attcan!uunet!husc6!mailrus!utah-gr!sundial.utah.edu!u-jleigh From: u-jleigh%sundial.utah.edu@utah-gr.UUCP (Jason Leigh) Newsgroups: comp.lang.misc,comp.sys.misc,comp.sys.amiga,comp.sys.mac,comp.sys.atari.st,comp.sys.ibm.pc,rec.mag Subject: Re: Tech Magazines, a suggestion Keywords: fanzine Message-ID: <2854@utah-gr.UUCP> Date: 12 Sep 88 03:59:05 GMT References: <624@sas.UUCP> Sender: news@utah-gr.UUCP Reply-To: u-jleigh%sundial.utah.edu.UUCP@utah-gr.UUCP (Jason Leigh) Distribution: na Organization: University of Utah CS Dept Lines: 30 Wade writes: Hmmm... I used to program in PASCAL alot. In fact, while I was at UCSD, this was the only upper level language used in the C.S. dept. Had to write an Ada compiler in Berkley PACAL :^(. What is wrong with useing a simple function to concat your two strings There are many string manipulation funtions provided in Benchmark Modula-2, and it is easy enough to deal with these things without them anyway. The problem with using the "+" operator to concatinate strings is that it genrates sloppy code, which is why it is not a part of modern languages. It was one of many things included in PASCAL to make teaching programming easier, but has no place in proffesional code. What happens when you concatinate two strings and the destination is too short to hold the result? ---------------------------------------------------------------- I do not agree with your notion that using a '+' to concat two strings causes 'sloppy' code. Such an allowance is called 'overloading' which is a concept availabe on most modern object oriented programming languages such as Ada and C++. The purpose of overloading is to enhance the readability of code by hiding as much unnecessary information as possible. I am surprised that after having written an Ada compiler, you never came across overloading... Send replies to this net or u-jleigh@ug.utah.edu Jason Leigh University of Utah