I only use dots at the end of blocks usually but I tried it and it still 
doesn't work. :/
Its weird..

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Camillo Bruni
Sent: Saturday, March 23, 2013 1:38 PM
To: A friendly place where any question about pharo is welcome
Subject: Re: [Pharo-users] Method Calling Inside Nested Blocks

I think you just have a missing dot (.) after `reader next: 6`? ;)


On 2013-03-23, at 12:31, "Mohammad Al Houssami (Alumni)" <[email protected]> 
wrote:

> Hello everyone
> 
> I was trying to save my method which has the below piece of code
> 
> anythingElseBoolean = false ifFalse: [
>                doctypeString := reader next: 6
>                doctypeString asLowercase =  'public'     ifTrue: [
>                                AfterDOCTYPEPublicKeywordState value: 
> currentCharacter
>                                ]
> 
> I get a complain that the AfterDOCTYPEPublicKeywordState is unknown even 
> though I have a method with this name.
> If I move the method call outside outside the ifTrue block to the ifFalse 
> block it doesn't complain.
> 
> Is the problem because of nested blocks ? If that's the case then what would 
> be a good work around ?
> 
> 
> Thanks
> Mohammad





Reply via email to