Switch.st
changeset 2871 d9d2c7abd95c
parent 440 a9f3ecf2aa6f
child 3248 ab7cf358e01a
equal deleted inserted replaced
2870:75f1f73b3bf9 2871:d9d2c7abd95c
     7  inclusion of the above copyright notice.   This software may not
     7  inclusion of the above copyright notice.   This software may not
     8  be provided or otherwise made available to, or used by, any
     8  be provided or otherwise made available to, or used by, any
     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 "{ Package: 'stx:libcomp' }"
    12 
    13 
    13 Object subclass:#Switch
    14 Object subclass:#Switch
    14 	instanceVariableNames:'expressions values default'
    15 	instanceVariableNames:'expressions values default'
    15 	classVariableNames:''
    16 	classVariableNames:''
    16 	poolDictionaries:''
    17 	poolDictionaries:''
    33 "
    34 "
    34 !
    35 !
    35 
    36 
    36 documentation
    37 documentation
    37     "
    38     "
       
    39      Obsolete: has been replaced by the caseOf: protocol found in Object.
       
    40 
    38      This class provides a switch-expression facility.
    41      This class provides a switch-expression facility.
    39      Consider this a demo example, nested if's are much more
    42      Consider this a demo example, nested if's are much more
    40      efficient. However, support for inline switches may be added
    43      efficient. However, support for inline switches may be added
    41      to the compiler (as is done in Smalltalk-agents)
    44      to the compiler (as is done in Smalltalk-agents)
    42      - in this case, a switch will be as efficient as any other if.
    45      - in this case, a switch will be as efficient as any other if.
    94 ! !
    97 ! !
    95 
    98 
    96 !Switch class methodsFor:'documentation'!
    99 !Switch class methodsFor:'documentation'!
    97 
   100 
    98 version
   101 version
    99     ^ '$Header: /cvs/stx/stx/libcomp/Switch.st,v 1.6 1996-11-11 21:54:08 stefan Exp $'
   102     ^ '$Header: /cvs/stx/stx/libcomp/Switch.st,v 1.7 2012-05-29 17:07:49 cg Exp $'
   100 ! !
   103 ! !