False.st
branchjv
changeset 17732 a1892eeca6c0
parent 17728 bbc5fa73dfab
child 17761 b0e5971141bc
equal deleted inserted replaced
17731:295728e8f410 17732:a1892eeca6c0
    58 
    58 
    59 !False methodsFor:'conditional evaluation'!
    59 !False methodsFor:'conditional evaluation'!
    60 
    60 
    61 and:aBlock
    61 and:aBlock
    62     "evaluate aBlock if the receiver is true.
    62     "evaluate aBlock if the receiver is true.
    63      (since the receiver is false return false).
    63      (since the receiver is known to be false here, always return false here).
    64      Notice:
    64      Notice:
    65 	This method is open coded (inlined) by the compiler(s)
    65         This method is open coded (inlined) by the compiler(s)
    66 	- redefining it may not work as expected."
    66         - redefining it may not work as expected."
    67 
    67 
    68     ^ self
    68     ^ self
    69 !
    69 !
    70 
    70 
    71 and:block1 and:block2
    71 and:block1 and:block2
    72     "return false"
    72     "evaluate block1 if the receiver is true; if that also returns true, evaluate block2.
       
    73      (since the receiver is known to be false here, always return false here).
       
    74      Notice:
       
    75         This method is open coded (inlined) by the compiler(s)
       
    76         - redefining it may not work as expected."
    73 
    77 
    74     ^ self
    78     ^ self
    75 !
    79 !
    76 
    80 
    77 and:block1 and:block2 and:block3
    81 and:block1 and:block2 and:block3
   229 ! !
   233 ! !
   230 
   234 
   231 !False class methodsFor:'documentation'!
   235 !False class methodsFor:'documentation'!
   232 
   236 
   233 version
   237 version
   234     ^ '$Id: False.st 10467 2009-08-19 16:14:36Z vranyj1 $'
   238     ^ '$Id: False.st 10473 2009-10-24 15:48:19Z vranyj1 $'
   235 ! !
   239 ! !
       
   240