I think you just have a missing dot (.) after `reader next: 6`? ;) On 2013-03-23, at 12:31, "Mohammad Al Houssami (Alumni)" <mha53@mail.aub.edu> 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