True.st
changeset 1238 a1b8da9895ad
parent 694 b3201f72676e
child 1294 e26bbb61f6b2
equal deleted inserted replaced
1237:9a6877a3b2b2 1238:a1b8da9895ad
     9  other person.  No title to or ownership of the software is
     9  other person.  No title to or ownership of the software is
    10  hereby transferred.
    10  hereby transferred.
    11 "
    11 "
    12 
    12 
    13 Boolean subclass:#True
    13 Boolean subclass:#True
    14 	 instanceVariableNames:''
    14 	instanceVariableNames:''
    15 	 classVariableNames:''
    15 	classVariableNames:''
    16 	 poolDictionaries:''
    16 	poolDictionaries:''
    17 	 category:'Kernel-Objects'
    17 	category:'Kernel-Objects'
    18 !
    18 !
    19 
    19 
    20 !True class methodsFor:'documentation'!
    20 !True class methodsFor:'documentation'!
    21 
    21 
    22 copyright
    22 copyright
    34 !
    34 !
    35 
    35 
    36 documentation
    36 documentation
    37 "
    37 "
    38     True has only one instance, true, representing logical truth.
    38     True has only one instance, true, representing logical truth.
       
    39 
    39     Some methods are implemented here and in False, instead of the common
    40     Some methods are implemented here and in False, instead of the common
    40     superclass Boolean. This has the advantage, that no truth-value checks
    41     superclass Boolean. This has the advantage, that no truth-value checks
    41     are needed, but instead the thruth check is done in the method lookup.
    42     are needed, but instead the thruth check is done in the method lookup.
    42     However, remember that some messages to booleans are inline coded in
    43     However, remember that some messages to booleans are inline coded in
    43     the compilers (both interpreted and machine code). Therefore redefinition
    44     the compilers (both interpreted and machine code). Therefore redefinition
   149 ! !
   150 ! !
   150 
   151 
   151 !True class methodsFor:'documentation'!
   152 !True class methodsFor:'documentation'!
   152 
   153 
   153 version
   154 version
   154     ^ '$Header: /cvs/stx/stx/libbasic/True.st,v 1.15 1995-12-07 19:39:17 cg Exp $'
   155     ^ '$Header: /cvs/stx/stx/libbasic/True.st,v 1.16 1996-04-20 19:15:11 cg Exp $'
   155 ! !
   156 ! !