[Q] Ask on String manipulation

Bolot Kerimbaev bolot at cc.gatech.edu
Tue Apr 28 03:48:35 UTC 1998


#, (comma) is used to concatenate strings:
str := str , 'Hello'.

Using concatenation, you can do:

self error: 'Class ', self name

without need for printf.

--
Bolot Kerimbaev


On Tue, 28 Apr 1998, Chun, Sung Jin wrote:

> I want to make string like in ObjC;
> [ str concatSTR: 'Hello' ];
> But in Smalltalk I cannot find it.
> And also I want printf like feature in error: like this;
> self error: 'Class %s', [ self name ]
> Can anyone teach me how I can do this ?
> 
> Thanks in advance.
> 
> ******************************************
> 
> I like N*Step's beauty, but Iove Freedom.
> 
> ninja at aerohel.snu.ac.kr
> 
> ---ObjC---
> NSString* NSMyName = @"Chun, sungjin";
> [ NSMyName fly ];
> ---ObjC---
> 
> ******************************************
> 
> 
> 





More information about the Squeak-dev mailing list