[Pharo-project] Issue 3341 in pharo: use #= for integer comparison instead of #==

pharo at googlecode.com pharo at googlecode.com
Sat Nov 27 17:21:25 CET 2010


Comment #1 on issue 3341 by stephane.ducasse: use #= for integer comparison  
instead of #==
http://code.google.com/p/pharo/issues/detail?id=3341

<CompiledMethod>scanForEqSmallConstant
     "Answer whether the receiver contains the pattern <expression> ==  
<constant>,
     where constant is -1, 0, 1, or 2..."

     | scanner |
     scanner _ InstructionStream on: self.
     ^ scanner scanFor: [:instr | (instr between: 116 and: 119) and:  
[scanner followingByte = 198]]

"
SystemNavigation new browseAllSelect: [:m | m scanForEqSmallConstant]
"






More information about the Pharo-project mailing list