Xref: utzoo comp.sys.mac:26482 comp.sys.mac.programmer:4393 Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ames!claris!drc From: drc@claris.com (Dennis Cohen) Newsgroups: comp.sys.mac,comp.sys.mac.programmer Subject: Re: LSP 2.0 FLAME Message-ID: <8740@claris.com> Date: 9 Feb 89 14:50:57 GMT References: <4359@hubcap.UUCP> Reply-To: drc@claris.com (Dennis Cohen) Followup-To: comp.sys.mac Organization: Claris Corporation, Mountain View CA Lines: 34 In article <4359@hubcap.UUCP> mikeoro@hubcap.UUCP (Michael K O'Rourke) writes: >I just tried to take an old turbo pascal program and port it in to LSP 2.0. >But lo and behold to my great surprise did i find the stupidest apparent error >in LSP. > >if a is of type string and i say : > >a := '5'; > >it promptly dislikes > >a := a + '3'; > >Come on!! I've been doing this for years! I should get a = 53. What's the >problem? Rich? I'm not Rich, but I couldn't let this one pass. This is one of my pet peeves re Turbo, the other being the lack of Get and Put. "+" is only string concatenation in Turbo. It doesn't exist in that guise in Pascal. You won't find it in other Mac or DOS Pascal compilers and definitely will not find it in "standard" Pascals on larger systems (or extended ones that I am aware of). This is NOT a bug in LSP -- it is a silly extension in Turbo that they don't even make clear is non-standard (though you can find out that it's an extension if you know where to look). Use concat if that is what you want to do. That's what is provided by most compilers for string concatenation -- although it is also an extension. At least it is a fairly "standard" extension. :-) Dennis Cohen Claris Corp. ------------ Disclaimer: Any opinions expressed above are _MINE_!