Boolean.st
changeset 379 5b5a130ccd09
parent 281 d63a7d2c31a6
child 384 cc3d110ea879
equal deleted inserted replaced
378:a9b22f23b0f1 379:5b5a130ccd09
    19 
    19 
    20 Boolean comment:'
    20 Boolean comment:'
    21 COPYRIGHT (c) 1988 by Claus Gittinger
    21 COPYRIGHT (c) 1988 by Claus Gittinger
    22 	      All Rights Reserved
    22 	      All Rights Reserved
    23 
    23 
    24 $Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.11 1995-02-24 16:32:49 claus Exp $
    24 $Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.12 1995-08-10 12:26:22 claus Exp $
    25 '!
    25 '!
    26 
    26 
    27 !Boolean class methodsFor:'documentation'!
    27 !Boolean class methodsFor:'documentation'!
    28 
    28 
    29 copyright
    29 copyright
    40 "
    40 "
    41 !
    41 !
    42 
    42 
    43 version
    43 version
    44 "
    44 "
    45 $Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.11 1995-02-24 16:32:49 claus Exp $
    45 $Header: /cvs/stx/stx/libbasic/Boolean.st,v 1.12 1995-08-10 12:26:22 claus Exp $
       
    46 $Revision: 1.12 $
    46 "
    47 "
    47 !
    48 !
    48 
    49 
    49 documentation
    50 documentation
    50 "
    51 "
   114      - since both true and false are unique, return the receiver"
   115      - since both true and false are unique, return the receiver"
   115 
   116 
   116     ^ self
   117     ^ self
   117 ! !
   118 ! !
   118 
   119 
       
   120 !Boolean methodsFor:'queries'!
       
   121 
       
   122 isLiteral
       
   123     "return true, if the receiver can be used as a literal
       
   124      (i.e. can be used in constant arrays)"
       
   125 
       
   126     ^ true
       
   127 ! !
       
   128 
   119 !Boolean methodsFor:'printing & storing'!
   129 !Boolean methodsFor:'printing & storing'!
   120 
   130 
   121 printOn:aStream
   131 printOn:aStream
   122     "append a character sequence representing the receiver to the argument,
   132     "append a character sequence representing the receiver to the argument,
   123      aStream"
   133      aStream"