Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!isst.fhg.de!berlin.fhg.de!news.fhg.de!blackbush.xlink.net!ins.net!heeg.de!hmm
From: hmm@heeg.de (Hans-Martin Mosner)
Subject: Re: Help: VW Smalltalk 2.5
Message-ID: <DwJ72H.8FB@heeg.de>
Sender: uucp@heeg.de
Organization: Georg Heeg Objektorientierte Systeme, Dortmund, FRG
X-Newsreader: TIN [version 1.2 PL2]
References: <199608201127.AA14987@gateway.timken.com>
Date: Thu, 22 Aug 1996 08:47:04 GMT
Lines: 26

jarvisb@timken.com wrote:
: Dolphin Smalltalk evaluates

:    'Tes', $t asString

: as

:    'Tes$t'


: VS 3.1 evaluates it as

:    'Test'

: I'd guess
: that an answer of 'Tes$t' could potentially break a lot of code).

What breaks the code is the message #asString, because it is ill-defined.
If you need to append a Character to a String, consider these alternatives,
which should work for (almost) all known Smalltalks in the universe:

'Tes' copyWith: $t

'Tes', (String with: $t) "This one does not work for GemStone < 5.0"

Hans-Martin
