Issue 5646 in pharo: use a dictionary instead of caseOf:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 5646 in pharo: use a dictionary instead of caseOf:

pharo
Status: Accepted
Owner: [hidden email]
Labels: Milestone-2.0

New issue 5646 by [hidden email]: use a dictionary instead of caseOf:
http://code.google.com/p/pharo/issues/detail?id=5646

imageToUse
        "Answer the image we should use."

        ^state caseOf: {
                [#off] -> [self offImage].
                [#pressed] -> [self pressedImage].
                [#on] -> [self onImage].
                [#repressed] -> [self repressedImage ifNil: [self onImage]]}
                otherwise: []

Paste or attach stack trace if applicable (look at the file PharoDebug.log
located in the same directory as your image):



_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5646 in pharo: use a dictionary instead of caseOf:

pharo
Updates:
        Status: Workneeded
        Cc: [hidden email]

Comment #2 on issue 5646 by [hidden email]: use a dictionary instead  
of caseOf:
http://code.google.com/p/pharo/issues/detail?id=5646

I'm working on it


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5646 in pharo: use a dictionary instead of caseOf:

pharo
Updates:
        Status: FixToInclude

Comment #3 on issue 5646 by [hidden email]: use a dictionary instead  
of caseOf:
http://code.google.com/p/pharo/issues/detail?id=5646

Name: SLICE-Issue-5646-use-a-dictionary-instead-of-caseOf-DamienCassou.1
Author: DamienCassou
Time: 27 April 2012, 2:39:34.838 pm
UUID: 4cf4438f-99ee-4b6d-9385-d11ff867c84e
Ancestors:
Dependencies: Polymorph-Widgets-DamienCassou.623

- Replace the use of caseOf: by a dictionary


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 5646 in pharo: use a dictionary instead of caseOf:

pharo
Updates:
        Status: Integrated

Comment #4 on issue 5646 by [hidden email]: use a dictionary instead  
of caseOf:
http://code.google.com/p/pharo/issues/detail?id=5646

in 2.0 021


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker