It works for me (I did this in the workspace) :

'test' class ==>  ByteString

'test' asUppercase ==> ‘TEST'

It is difficult to tell from your email what is the problem.   I would 
recommend that you test little things like
this in a workspace window.  I am suspecting that your method is not being 
called in the way you think it is.


Sincerely,

Joseph.



> On Mar 8, 2017, at 1:21 PM, alaztetik [via Smalltalk] 
> <ml-node+s1294792n4937922...@n4.nabble.com> wrote:
> 
> Hi everbody, 
> 
> It is nice to be here with you. This is my first post and I'm very excited! 
> 
> I'm reading "Squeark by Example" book and encountered an interesting error. 
> 
> --- 
> 
> I created a method named "testString" and here is its content: 
> 
> testShout 
>         ^self asUppercase, '!'. 
> 
> When I test it, it doesn't work and gives this error: 
> doesNotUnderstand:#asUppercase. 
> 
> But when I replace the text: 
> 
> testShout 
>         ^self opy asString translateToUppercase, '!' 
> 
> It works! Where am I making a mistake? 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://forum.world.st/asUppercase-doesn-t-work-tp4937922.html
> To start a new topic under Squeak - Beginners, email 
> ml-node+s1294792n107673...@n4.nabble.com 
> To unsubscribe from Squeak - Beginners, click here.
> NAML





--
View this message in context: 
http://forum.world.st/asUppercase-doesn-t-work-tp4937922p4937934.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to