Simple String Question.
Jimmie Houchin
jhouchin at texoma.net
Wed May 15 15:48:22 UTC 2002
Mucho Gracias Diego y Norberto.
Thanks for the lesson. I tried it. Wow!!!
I was trying to do some stuff in Python yesterday and after learning
Squeak for awhile the Python environment just seemed so primitive.
I hadn't gave it any thought previously. But I can see why when someone
masters Smalltalk the reticence to move to other environments. The tools
for browsing, finding and reusing code are wonderful. :)
Thanks again.
Jimmie Houchin
Diego Gomez Deck wrote:
> Two answers, one short and one large:
>
> short one:
> you need #,
>
> a := 'StringOne'
> b := 'StringTwo'
> c := a , b
>
>
> large one:
> when you need to find a message that produces a result you know use 'method finder' (world menu > open > method finder) and write some like this:
> 'StringOne'. 'StringTwo'. 'StringOneStringTwo'
>
> this means "What message I must send to 'StringOne' with parameter 'StringTwo' to get the answer 'StringOneStringTwo'.
>
> Enjoy it!
>
> Diego Gomez Deck
>
>
>>My books are at home and I am having difficulty finding how to put two
>>strings together.
>>
>>In Python and I think other languages (I believe) I can do in Smalltalk
>>form:
>>
>>a := 'StringOne'
>>b := 'StringTwo'
>>c := a + b
>>
>>I have browsed the String class and protocols and haven't found the
>>equivalent. When I 'doit' on the above it informs me at least one
>>integer is required.
>>
>>I know I must have overlooked the right code or an example but just am
>>not seeing it.
>>
>>Any help greatly appreciated.
>>
>>Jimmie Houchin
>>
>>
>>
>
>
>
>
More information about the Squeak-dev
mailing list
|