[Pharo-dev] adding temporary adds them outside the temp declaration?

Clément Bera bera.clement at gmail.com
Sun Aug 11 14:26:53 EDT 2013


This is in Pharo 3, isn't it ?

There are currently bugs with Opal's exception handing in Pharo 3.0. It was
fixed then some other changes broke it again. So yeah it is known. You
might have bug with:
OCShadowVariableWarning.
OCUndeclaredVariableWarning.
OCUninitializedVariableWarning.
OCUnusedVariableWarning.
OCUnknownSelectorWarning.


2013/8/11 Stéphane Ducasse <stephane.ducasse at inria.fr>

> Hi guys
>
> Is it a know bug?
>
> | selector superClasses |
>         selector := aMethodDefinition selector.
>         superClasses := aMethodDefinition realClass allSuperclasses.
>         result := OrderedCollection new.
>         (superClasses select: [ :eachClass | eachClass hasProtocolFor:
> selector])
>                 do: [ :eachClass | (eachClass includesSelector: selector)
>                                                                 ifTrue: [
> result add: (self whichCategoryIncludesSelector: selector)]].
>         ^ result asBag
>
> adds result
>
> result | selector superClasses |
>         selector := aMethodDefinition selector.
>         superClasses := aMethodDefinition realClass allSuperclasses.
>         result := OrderedCollection new.
>         (superClasses select: [ :eachClass | eachClass hasProtocolFor:
> selector])
>                 do: [ :eachClass | (eachClass includesSelector: selector)
>                                                                 ifTrue: [
> result add: (self whichCategoryIncludesSelector: selector)]].
>         ^ result asBag
>
> stef
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20130811/60cbcbb3/attachment-0002.html>


More information about the Pharo-dev mailing list