Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
May 2011
- 124 participants
- 1622 messages
[Pharo-project] Zinc feedback
by Stéphane Ducasse
Hi Sven
with igor we went over the start up list and we saw that ZnServer resgiter all subclasses of ZnServer.
We think that it would be better to have a list of servers to be registered and that users can decide.
What do you think?
Stef
May 20, 2011
[Pharo-project] Set with nil
by Guillermo Polito
Hi!
Since a year ago, we have this issue:
http://code.google.com/p/pharo/issues/detail?id=1907
There were 2 solutions proposed, and the 2 were developed by different
people. But for some reason it was not integrated and continuously
postponed.
So, my question is: Do we want Sets accepting nil? If we don't, the issue
is invalid. If we do, can someone review the code proposed?
Thanks!
Guille
May 20, 2011
Re: [Pharo-project] Subscript out of bounds: 1 on latest (hudson) Pharo 1.3
by Guillermo Polito
http://code.google.com/p/pharo/issues/detail?id=4255
On Thu, May 19, 2011 at 9:12 PM, Guillermo Polito <guillermopolito(a)gmail.com
> wrote:
> Hi!
>
> I want to load a 6 month old slice
> (SLICE-Issue-1907-SetWithNilTests-GuillermoPolito.2) from pharo inbox in
> latest 1.3(13204) from hudson using cog, and It opens a pre-debugger because
> of a Subscript out of bounds: 1. If I clic on it to debug, It throws me
> again the same error :(.
> It happens if there is the sources file or not.
>
>
> But the most strange is that if I download latest 1.3 from the bottom of
> the page: http://www.pharo-project.org/pharo-download
> It actually loads the Slice, but throws me a DNU if I dont have the sources
> file in the same folder:
>
> 19 May 2011 9:02:38 pm
>
> VM: unix - i686 - linux-gnu - Croquet Closure Cog VM [CoInterpreter
> VMMaker-oscog.47]
> Image: Pharo1.3a [Latest update: #13201]
>
> UndefinedObject(Object)>>doesNotUnderstand: #keywords
> Receiver: nil
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> nil
>
> CompiledMethod>>getSourceReplacingSelectorWith:
> Receiver: (TPrintTest>>#testPrintElementsOn "a
> CompiledMethod(842792960)")
> Arguments and temporary variables:
> newSelector: #testPrintElementsOn
> oldKeywords: nil
> newKeywords: nil
> args: nil
> newSelectorWithArgs: nil
> source: ''
> oldSelector: nil
> s: nil
> Receiver's instance variables:
> (TPrintTest>>#testPrintElementsOn "a CompiledMethod(842792960)")
>
> DictionaryTest class(Behavior)>>addTraitSelector:withMethod:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> aSymbol: #testPrintElementsOn
> aCompiledMethod: (TPrintTest>>#testPrintElementsOn "a
> CompiledMethod(842792960)...etc...
> source: nil
> methodAndNode: nil
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> [:methodDescription |
> | effectiveMethod selector |
> selector := methodDescription selector.
> (self includesLocalSelector: selector)
> ifFalse: [methodDescription isEmpty
> ifTrue: [self removeTraitSelector: selector.
> modifiedSelectors add: selector]
> ifFalse: [effectiveMethod := methodDescription
> effectiveMethod.
> self addTraitSelector: selector withMethod:
> effectiveMethod.
> modifiedSelectors add: selector]]] in DictionaryTest
> class(Behavior)>>updateMethodDictionarySelector:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> modifiedSelectors: a TraitMethodDescription
> methodDescription: an IdentitySet()
> effectiveMethod: (TPrintTest>>#testPrintElementsOn "a
> CompiledMethod(842792960)...etc...
> selector: #testPrintElementsOn
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> OrderedCollection>>do:
> Receiver: an OrderedCollection(a TraitMethodDescription)
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> array: an Array(a TraitMethodDescription)
> firstIndex: 1
> lastIndex: 1
>
> DictionaryTest class(Behavior)>>updateMethodDictionarySelector:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> aSymbol: #testPrintElementsOn
> modifiedSelectors: an IdentitySet()
> descriptions: an OrderedCollection(a TraitMethodDescription)
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> [:t3 | t2
> addAll: (self updateMethodDictionarySelector: t3)] in
> DictionaryTest class(Behavior)>>noteChangedSelectors:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> Array(SequenceableCollection)>>do:
> Receiver: #(#testPrintElementsOn)
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> #(#testPrintElementsOn)
>
> DictionaryTest class(Behavior)>>noteChangedSelectors:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> [:t2 | t2 noteChangedSelectors: t1] in
> Trait(TraitDescription)>>notifyUsersOfChangedSelectors:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> [:each | each
> ifNotNil: [aBlock value: each]] in IdentitySet(Set)>>do:
> Receiver: an IdentitySet(DictionaryTest)
> Arguments and temporary variables:
> aBlock: DictionaryTest
> each: [:t2 | t2 noteChangedSelectors: t1]
> Receiver's instance variables:
> tally: 1
> array: {nil. nil. nil. nil. DictionaryTest. nil. nil}
>
> Array(SequenceableCollection)>>do:
> Receiver: {nil. nil. nil. nil. DictionaryTest. nil. nil}
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> {nil. nil. nil. nil. DictionaryTest. nil. nil}
>
> IdentitySet(Set)>>do:
> Receiver: an IdentitySet(DictionaryTest)
> Arguments and temporary variables:
> aBlock: [:t2 | t2 noteChangedSelectors: t1]
> Receiver's instance variables:
> tally: 1
> array: {nil. nil. nil. nil. DictionaryTest. nil. nil}
>
> Trait(TraitDescription)>>notifyUsersOfChangedSelectors:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> Trait(TraitBehavior)>>notifyUsersOfChangedSelector:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> Trait(TraitBehavior)>>addSelectorSilently:withMethod:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> Trait(TraitDescription)>>addSelectorSilently:withMethod:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> MethodAddition>>installMethod
> Receiver: a MethodAddition
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> text: 'testPrintElementsOn
> | str |
> str := String new writeStream.
> self nonEm...etc...
> category: #'test - printing'
> changeStamp: 'PeterHugossonMiller 9/3/2009 11:33'
> requestor: nil
> logSource: true
> myClass: TDictionaryPrintingTest
> methodAndNode: a CompiledMethodWithNode
> selector: #testPrintElementsOn
> compiledMethod: (TDictionaryPrintingTest>>#testPrintElementsOn
> "a CompiledMetho...etc...
> priorMethodOrNil:
> (TDictionaryPrintingTest>>#testPrintElementsOn "a CompiledMet...etc...
>
>
> I'll open a ticket :)
>
May 20, 2011
Re: [Pharo-project] Subscript out of bounds: 1 on latest (hudson) Pharo 1.3
by Guillermo Polito
Actually, the first issue happens because there is no changes file.
On Thu, May 19, 2011 at 9:12 PM, Guillermo Polito <guillermopolito(a)gmail.com
> wrote:
> Hi!
>
> I want to load a 6 month old slice
> (SLICE-Issue-1907-SetWithNilTests-GuillermoPolito.2) from pharo inbox in
> latest 1.3(13204) from hudson using cog, and It opens a pre-debugger because
> of a Subscript out of bounds: 1. If I clic on it to debug, It throws me
> again the same error :(.
> It happens if there is the sources file or not.
>
>
> But the most strange is that if I download latest 1.3 from the bottom of
> the page: http://www.pharo-project.org/pharo-download
> It actually loads the Slice, but throws me a DNU if I dont have the sources
> file in the same folder:
>
> 19 May 2011 9:02:38 pm
>
> VM: unix - i686 - linux-gnu - Croquet Closure Cog VM [CoInterpreter
> VMMaker-oscog.47]
> Image: Pharo1.3a [Latest update: #13201]
>
> UndefinedObject(Object)>>doesNotUnderstand: #keywords
> Receiver: nil
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> nil
>
> CompiledMethod>>getSourceReplacingSelectorWith:
> Receiver: (TPrintTest>>#testPrintElementsOn "a
> CompiledMethod(842792960)")
> Arguments and temporary variables:
> newSelector: #testPrintElementsOn
> oldKeywords: nil
> newKeywords: nil
> args: nil
> newSelectorWithArgs: nil
> source: ''
> oldSelector: nil
> s: nil
> Receiver's instance variables:
> (TPrintTest>>#testPrintElementsOn "a CompiledMethod(842792960)")
>
> DictionaryTest class(Behavior)>>addTraitSelector:withMethod:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> aSymbol: #testPrintElementsOn
> aCompiledMethod: (TPrintTest>>#testPrintElementsOn "a
> CompiledMethod(842792960)...etc...
> source: nil
> methodAndNode: nil
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> [:methodDescription |
> | effectiveMethod selector |
> selector := methodDescription selector.
> (self includesLocalSelector: selector)
> ifFalse: [methodDescription isEmpty
> ifTrue: [self removeTraitSelector: selector.
> modifiedSelectors add: selector]
> ifFalse: [effectiveMethod := methodDescription
> effectiveMethod.
> self addTraitSelector: selector withMethod:
> effectiveMethod.
> modifiedSelectors add: selector]]] in DictionaryTest
> class(Behavior)>>updateMethodDictionarySelector:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> modifiedSelectors: a TraitMethodDescription
> methodDescription: an IdentitySet()
> effectiveMethod: (TPrintTest>>#testPrintElementsOn "a
> CompiledMethod(842792960)...etc...
> selector: #testPrintElementsOn
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> OrderedCollection>>do:
> Receiver: an OrderedCollection(a TraitMethodDescription)
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> array: an Array(a TraitMethodDescription)
> firstIndex: 1
> lastIndex: 1
>
> DictionaryTest class(Behavior)>>updateMethodDictionarySelector:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> aSymbol: #testPrintElementsOn
> modifiedSelectors: an IdentitySet()
> descriptions: an OrderedCollection(a TraitMethodDescription)
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> [:t3 | t2
> addAll: (self updateMethodDictionarySelector: t3)] in
> DictionaryTest class(Behavior)>>noteChangedSelectors:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> Array(SequenceableCollection)>>do:
> Receiver: #(#testPrintElementsOn)
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> #(#testPrintElementsOn)
>
> DictionaryTest class(Behavior)>>noteChangedSelectors:
> Receiver: DictionaryTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> superclass: CollectionRootTest
> methodDict: a MethodDictionary(size 192)
> format: 162
> instanceVariables: #('emptyDict' 'nonEmptyDict'
> 'nonEmpty5ElementsNoDuplicates'...etc...
> organization: ('helpers' aValue anIndex anotherValue)
> ('requirement' anotherEle...etc...
> subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
> LiteralDictionaryTest...etc...
> name: #DictionaryTest
> classPool: nil
> sharedPools: nil
> environment: a SystemDictionary(lots of globals)
> category: #'CollectionsTests-Unordered'
> traitComposition: TIncludesTest + TDictionaryAddingTest +
> TDictionaryComparingT...etc...
> localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
> #testDictionaryC...etc...
> history: a Dictionary(#errors->a Set() #failures->a Set()
> #passed->a Set() #tim...etc...
> testToto: nil
> pt1: nil
>
> [:t2 | t2 noteChangedSelectors: t1] in
> Trait(TraitDescription)>>notifyUsersOfChangedSelectors:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> [:each | each
> ifNotNil: [aBlock value: each]] in IdentitySet(Set)>>do:
> Receiver: an IdentitySet(DictionaryTest)
> Arguments and temporary variables:
> aBlock: DictionaryTest
> each: [:t2 | t2 noteChangedSelectors: t1]
> Receiver's instance variables:
> tally: 1
> array: {nil. nil. nil. nil. DictionaryTest. nil. nil}
>
> Array(SequenceableCollection)>>do:
> Receiver: {nil. nil. nil. nil. DictionaryTest. nil. nil}
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> {nil. nil. nil. nil. DictionaryTest. nil. nil}
>
> IdentitySet(Set)>>do:
> Receiver: an IdentitySet(DictionaryTest)
> Arguments and temporary variables:
> aBlock: [:t2 | t2 noteChangedSelectors: t1]
> Receiver's instance variables:
> tally: 1
> array: {nil. nil. nil. nil. DictionaryTest. nil. nil}
>
> Trait(TraitDescription)>>notifyUsersOfChangedSelectors:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> Trait(TraitBehavior)>>notifyUsersOfChangedSelector:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> Trait(TraitBehavior)>>addSelectorSilently:withMethod:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> Trait(TraitDescription)>>addSelectorSilently:withMethod:
> Receiver: TDictionaryPrintingTest
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> methodDict: a
> MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
> traitComposition: {}
> localSelectors: nil
> users: an IdentitySet(DictionaryTest)
> organization: ('requirements' emptyDict newEmptyDict
> nonEmptyDict)
> ('test - pri...etc...
> name: #TDictionaryPrintingTest
> environment: a SystemDictionary(lots of globals)
> classTrait: TDictionaryPrintingTest classTrait
> category: #'CollectionsTests-Unordered'
>
> MethodAddition>>installMethod
> Receiver: a MethodAddition
> Arguments and temporary variables:
> <<error during printing>
> Receiver's instance variables:
> text: 'testPrintElementsOn
> | str |
> str := String new writeStream.
> self nonEm...etc...
> category: #'test - printing'
> changeStamp: 'PeterHugossonMiller 9/3/2009 11:33'
> requestor: nil
> logSource: true
> myClass: TDictionaryPrintingTest
> methodAndNode: a CompiledMethodWithNode
> selector: #testPrintElementsOn
> compiledMethod: (TDictionaryPrintingTest>>#testPrintElementsOn
> "a CompiledMetho...etc...
> priorMethodOrNil:
> (TDictionaryPrintingTest>>#testPrintElementsOn "a CompiledMet...etc...
>
>
> I'll open a ticket :)
>
May 20, 2011
[Pharo-project] Subscript out of bounds: 1 on latest (hudson) Pharo 1.3
by Guillermo Polito
Hi!
I want to load a 6 month old slice
(SLICE-Issue-1907-SetWithNilTests-GuillermoPolito.2) from pharo inbox in
latest 1.3(13204) from hudson using cog, and It opens a pre-debugger because
of a Subscript out of bounds: 1. If I clic on it to debug, It throws me
again the same error :(.
It happens if there is the sources file or not.
But the most strange is that if I download latest 1.3 from the bottom of the
page: http://www.pharo-project.org/pharo-download
It actually loads the Slice, but throws me a DNU if I dont have the sources
file in the same folder:
19 May 2011 9:02:38 pm
VM: unix - i686 - linux-gnu - Croquet Closure Cog VM [CoInterpreter
VMMaker-oscog.47]
Image: Pharo1.3a [Latest update: #13201]
UndefinedObject(Object)>>doesNotUnderstand: #keywords
Receiver: nil
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
nil
CompiledMethod>>getSourceReplacingSelectorWith:
Receiver: (TPrintTest>>#testPrintElementsOn "a
CompiledMethod(842792960)")
Arguments and temporary variables:
newSelector: #testPrintElementsOn
oldKeywords: nil
newKeywords: nil
args: nil
newSelectorWithArgs: nil
source: ''
oldSelector: nil
s: nil
Receiver's instance variables:
(TPrintTest>>#testPrintElementsOn "a CompiledMethod(842792960)")
DictionaryTest class(Behavior)>>addTraitSelector:withMethod:
Receiver: DictionaryTest
Arguments and temporary variables:
aSymbol: #testPrintElementsOn
aCompiledMethod: (TPrintTest>>#testPrintElementsOn "a
CompiledMethod(842792960)...etc...
source: nil
methodAndNode: nil
Receiver's instance variables:
superclass: CollectionRootTest
methodDict: a MethodDictionary(size 192)
format: 162
instanceVariables: #('emptyDict' 'nonEmptyDict'
'nonEmpty5ElementsNoDuplicates'...etc...
organization: ('helpers' aValue anIndex anotherValue)
('requirement' anotherEle...etc...
subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
LiteralDictionaryTest...etc...
name: #DictionaryTest
classPool: nil
sharedPools: nil
environment: a SystemDictionary(lots of globals)
category: #'CollectionsTests-Unordered'
traitComposition: TIncludesTest + TDictionaryAddingTest +
TDictionaryComparingT...etc...
localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
#testDictionaryC...etc...
history: a Dictionary(#errors->a Set() #failures->a Set()
#passed->a Set() #tim...etc...
testToto: nil
pt1: nil
[:methodDescription |
| effectiveMethod selector |
selector := methodDescription selector.
(self includesLocalSelector: selector)
ifFalse: [methodDescription isEmpty
ifTrue: [self removeTraitSelector: selector.
modifiedSelectors add: selector]
ifFalse: [effectiveMethod := methodDescription
effectiveMethod.
self addTraitSelector: selector withMethod:
effectiveMethod.
modifiedSelectors add: selector]]] in DictionaryTest
class(Behavior)>>updateMethodDictionarySelector:
Receiver: DictionaryTest
Arguments and temporary variables:
modifiedSelectors: a TraitMethodDescription
methodDescription: an IdentitySet()
effectiveMethod: (TPrintTest>>#testPrintElementsOn "a
CompiledMethod(842792960)...etc...
selector: #testPrintElementsOn
Receiver's instance variables:
superclass: CollectionRootTest
methodDict: a MethodDictionary(size 192)
format: 162
instanceVariables: #('emptyDict' 'nonEmptyDict'
'nonEmpty5ElementsNoDuplicates'...etc...
organization: ('helpers' aValue anIndex anotherValue)
('requirement' anotherEle...etc...
subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
LiteralDictionaryTest...etc...
name: #DictionaryTest
classPool: nil
sharedPools: nil
environment: a SystemDictionary(lots of globals)
category: #'CollectionsTests-Unordered'
traitComposition: TIncludesTest + TDictionaryAddingTest +
TDictionaryComparingT...etc...
localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
#testDictionaryC...etc...
history: a Dictionary(#errors->a Set() #failures->a Set()
#passed->a Set() #tim...etc...
testToto: nil
pt1: nil
OrderedCollection>>do:
Receiver: an OrderedCollection(a TraitMethodDescription)
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
array: an Array(a TraitMethodDescription)
firstIndex: 1
lastIndex: 1
DictionaryTest class(Behavior)>>updateMethodDictionarySelector:
Receiver: DictionaryTest
Arguments and temporary variables:
aSymbol: #testPrintElementsOn
modifiedSelectors: an IdentitySet()
descriptions: an OrderedCollection(a TraitMethodDescription)
Receiver's instance variables:
superclass: CollectionRootTest
methodDict: a MethodDictionary(size 192)
format: 162
instanceVariables: #('emptyDict' 'nonEmptyDict'
'nonEmpty5ElementsNoDuplicates'...etc...
organization: ('helpers' aValue anIndex anotherValue)
('requirement' anotherEle...etc...
subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
LiteralDictionaryTest...etc...
name: #DictionaryTest
classPool: nil
sharedPools: nil
environment: a SystemDictionary(lots of globals)
category: #'CollectionsTests-Unordered'
traitComposition: TIncludesTest + TDictionaryAddingTest +
TDictionaryComparingT...etc...
localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
#testDictionaryC...etc...
history: a Dictionary(#errors->a Set() #failures->a Set()
#passed->a Set() #tim...etc...
testToto: nil
pt1: nil
[:t3 | t2
addAll: (self updateMethodDictionarySelector: t3)] in DictionaryTest
class(Behavior)>>noteChangedSelectors:
Receiver: DictionaryTest
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
superclass: CollectionRootTest
methodDict: a MethodDictionary(size 192)
format: 162
instanceVariables: #('emptyDict' 'nonEmptyDict'
'nonEmpty5ElementsNoDuplicates'...etc...
organization: ('helpers' aValue anIndex anotherValue)
('requirement' anotherEle...etc...
subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
LiteralDictionaryTest...etc...
name: #DictionaryTest
classPool: nil
sharedPools: nil
environment: a SystemDictionary(lots of globals)
category: #'CollectionsTests-Unordered'
traitComposition: TIncludesTest + TDictionaryAddingTest +
TDictionaryComparingT...etc...
localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
#testDictionaryC...etc...
history: a Dictionary(#errors->a Set() #failures->a Set()
#passed->a Set() #tim...etc...
testToto: nil
pt1: nil
Array(SequenceableCollection)>>do:
Receiver: #(#testPrintElementsOn)
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
#(#testPrintElementsOn)
DictionaryTest class(Behavior)>>noteChangedSelectors:
Receiver: DictionaryTest
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
superclass: CollectionRootTest
methodDict: a MethodDictionary(size 192)
format: 162
instanceVariables: #('emptyDict' 'nonEmptyDict'
'nonEmpty5ElementsNoDuplicates'...etc...
organization: ('helpers' aValue anIndex anotherValue)
('requirement' anotherEle...etc...
subclasses: {SmallDictionaryTest. IdentityDictionaryTest.
LiteralDictionaryTest...etc...
name: #DictionaryTest
classPool: nil
sharedPools: nil
environment: a SystemDictionary(lots of globals)
category: #'CollectionsTests-Unordered'
traitComposition: TIncludesTest + TDictionaryAddingTest +
TDictionaryComparingT...etc...
localSelectors: an IdentitySet(#testKeyAtIdentityValueIfAbsent
#testDictionaryC...etc...
history: a Dictionary(#errors->a Set() #failures->a Set()
#passed->a Set() #tim...etc...
testToto: nil
pt1: nil
[:t2 | t2 noteChangedSelectors: t1] in
Trait(TraitDescription)>>notifyUsersOfChangedSelectors:
Receiver: TDictionaryPrintingTest
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
methodDict: a
MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
traitComposition: {}
localSelectors: nil
users: an IdentitySet(DictionaryTest)
organization: ('requirements' emptyDict newEmptyDict
nonEmptyDict)
('test - pri...etc...
name: #TDictionaryPrintingTest
environment: a SystemDictionary(lots of globals)
classTrait: TDictionaryPrintingTest classTrait
category: #'CollectionsTests-Unordered'
[:each | each
ifNotNil: [aBlock value: each]] in IdentitySet(Set)>>do:
Receiver: an IdentitySet(DictionaryTest)
Arguments and temporary variables:
aBlock: DictionaryTest
each: [:t2 | t2 noteChangedSelectors: t1]
Receiver's instance variables:
tally: 1
array: {nil. nil. nil. nil. DictionaryTest. nil. nil}
Array(SequenceableCollection)>>do:
Receiver: {nil. nil. nil. nil. DictionaryTest. nil. nil}
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
{nil. nil. nil. nil. DictionaryTest. nil. nil}
IdentitySet(Set)>>do:
Receiver: an IdentitySet(DictionaryTest)
Arguments and temporary variables:
aBlock: [:t2 | t2 noteChangedSelectors: t1]
Receiver's instance variables:
tally: 1
array: {nil. nil. nil. nil. DictionaryTest. nil. nil}
Trait(TraitDescription)>>notifyUsersOfChangedSelectors:
Receiver: TDictionaryPrintingTest
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
methodDict: a
MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
traitComposition: {}
localSelectors: nil
users: an IdentitySet(DictionaryTest)
organization: ('requirements' emptyDict newEmptyDict
nonEmptyDict)
('test - pri...etc...
name: #TDictionaryPrintingTest
environment: a SystemDictionary(lots of globals)
classTrait: TDictionaryPrintingTest classTrait
category: #'CollectionsTests-Unordered'
Trait(TraitBehavior)>>notifyUsersOfChangedSelector:
Receiver: TDictionaryPrintingTest
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
methodDict: a
MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
traitComposition: {}
localSelectors: nil
users: an IdentitySet(DictionaryTest)
organization: ('requirements' emptyDict newEmptyDict
nonEmptyDict)
('test - pri...etc...
name: #TDictionaryPrintingTest
environment: a SystemDictionary(lots of globals)
classTrait: TDictionaryPrintingTest classTrait
category: #'CollectionsTests-Unordered'
Trait(TraitBehavior)>>addSelectorSilently:withMethod:
Receiver: TDictionaryPrintingTest
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
methodDict: a
MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
traitComposition: {}
localSelectors: nil
users: an IdentitySet(DictionaryTest)
organization: ('requirements' emptyDict newEmptyDict
nonEmptyDict)
('test - pri...etc...
name: #TDictionaryPrintingTest
environment: a SystemDictionary(lots of globals)
classTrait: TDictionaryPrintingTest classTrait
category: #'CollectionsTests-Unordered'
Trait(TraitDescription)>>addSelectorSilently:withMethod:
Receiver: TDictionaryPrintingTest
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
methodDict: a
MethodDictionary(#emptyDict->(TDictionaryPrintingTest>>#emptyDict...etc...
traitComposition: {}
localSelectors: nil
users: an IdentitySet(DictionaryTest)
organization: ('requirements' emptyDict newEmptyDict
nonEmptyDict)
('test - pri...etc...
name: #TDictionaryPrintingTest
environment: a SystemDictionary(lots of globals)
classTrait: TDictionaryPrintingTest classTrait
category: #'CollectionsTests-Unordered'
MethodAddition>>installMethod
Receiver: a MethodAddition
Arguments and temporary variables:
<<error during printing>
Receiver's instance variables:
text: 'testPrintElementsOn
| str |
str := String new writeStream.
self nonEm...etc...
category: #'test - printing'
changeStamp: 'PeterHugossonMiller 9/3/2009 11:33'
requestor: nil
logSource: true
myClass: TDictionaryPrintingTest
methodAndNode: a CompiledMethodWithNode
selector: #testPrintElementsOn
compiledMethod: (TDictionaryPrintingTest>>#testPrintElementsOn
"a CompiledMetho...etc...
priorMethodOrNil: (TDictionaryPrintingTest>>#testPrintElementsOn
"a CompiledMet...etc...
I'll open a ticket :)
May 20, 2011
Re: [Pharo-project] problem with Dictionary and KeyNowFound
by Mariano Martinez Peck
On Fri, May 20, 2011 at 12:34 AM, Camillo Bruni <camillo.bruni(a)inria.fr>wrote:
>
> On 2011-05-20, at 00:03, Mariano Martinez Peck wrote:
>
> > On Thu, May 19, 2011 at 11:55 PM, Camillo Bruni <camillo.bruni(a)inria.fr
> >wrote:
> >
> >> IMO this shouldn't change a thing, since KeyNotFound inherits from
> Error...
> >> having a look at it
> >>
> >> yes i know :(
> > but in pharo 1.2 it works. That's why I thought it could be related to
> > that.
>
> ok, the bug seems to be related to catching the signaller, dunno why, but
> commenting out the section on Exception >> signal seems to solve the issue.
>
> I will have a look at it tomorrow.
>
>
Cool!!! Thanks Camillo for you efficiency :)
> camillo
>
> >> On 2011-05-19, at 23:45, Mariano Martinez Peck wrote:
> >>> So...it seems Pharo1.3 change Dictionary to throw KeyNotFound instead
> of
> >> Error.
> >>> Now, my image freezes with a loop. I would appreciate some help. I
> >> couldn't really analyzed the problem.
> >>> Fileine both FLPerson.st and ATest and run the test
> testDictionaryRehash.
> >>> In such test, a the end there is a
> >>>
> >>> self shouldnt: [aDictionary at: newPerson1] raise: KeyNotFound.
> >>>
> >>>
> >>> which raises the debugger pre-popup. if I try to click on the popup...
> ->
> >> loop/freeze.
> >>> You can interrupt it and see more or less what is happening.
> >>>
> >>> Camillo, can you take a look?
> >>
> >
> >
> >
> > --
> > Mariano
> > http://marianopeck.wordpress.com
>
>
--
Mariano
http://marianopeck.wordpress.com
May 19, 2011
[Pharo-project] VW's ObjectRegistry similar in Pharo?
by Mariano Martinez Peck
Hi guys. We are doing graph traversal (for Fuel) and we would love a
collection to be really fast and only support two simple operations: #add:
and #includes:
The idea is that each object we process of the graph we put it in the
collection and then for each object we have to ask whether it is included or
not (to avoid cycles and putting the same object more than once).
VW seems to have ObjectRegistry (subclass of IdentitySet) which is more or
less that. It is used by ObjectTracer, which in fact is what we want to do.
And even more, Parcels uses that ;) (or an extension of that).
So...I wonder, is there a special collection implementation ideal for this
case? is something similar to ObjectRegistry available for pharo ?
Thanks in advance,
--
Mariano
http://marianopeck.wordpress.com
May 19, 2011
Re: [Pharo-project] problem with Dictionary and KeyNowFound
by Camillo Bruni
On 2011-05-20, at 00:03, Mariano Martinez Peck wrote:
> On Thu, May 19, 2011 at 11:55 PM, Camillo Bruni <camillo.bruni(a)inria.fr>wrote:
>
>> IMO this shouldn't change a thing, since KeyNotFound inherits from Error...
>> having a look at it
>>
>> yes i know :(
> but in pharo 1.2 it works. That's why I thought it could be related to
> that.
ok, the bug seems to be related to catching the signaller, dunno why, but commenting out the section on Exception >> signal seems to solve the issue.
I will have a look at it tomorrow.
camillo
>> On 2011-05-19, at 23:45, Mariano Martinez Peck wrote:
>>> So...it seems Pharo1.3 change Dictionary to throw KeyNotFound instead of
>> Error.
>>> Now, my image freezes with a loop. I would appreciate some help. I
>> couldn't really analyzed the problem.
>>> Fileine both FLPerson.st and ATest and run the test testDictionaryRehash.
>>> In such test, a the end there is a
>>>
>>> self shouldnt: [aDictionary at: newPerson1] raise: KeyNotFound.
>>>
>>>
>>> which raises the debugger pre-popup. if I try to click on the popup... ->
>> loop/freeze.
>>> You can interrupt it and see more or less what is happening.
>>>
>>> Camillo, can you take a look?
>>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
May 19, 2011
Re: [Pharo-project] SIXX problem for ScaledDecimal
by Chris Cunningham
For ScaledDecimal, SIXX should definite store it as the underlying
fraction. Storing it in the printed fashion does change the value of
the ScaledDecimal.
(1/3) asScaledDecimal: 2 gives 0.33s2
and
(33/100) asScaledDecimal: 2 gives 0.33s2
yet
0.33s2 ~= ( (1/3) asScaledDecimal: 2 )
and
( (1/3) asScaledDecimal: 2 ) ~= ( (33/100) asScaledDecimal: 2 )
In other words, the ScaledDecimal is about the precise internal number
and the scale to display it - which is NOT the scale that it is stored
as.
-Chris
May 19, 2011
Re: [Pharo-project] problem with Dictionary and KeyNowFound
by Mariano Martinez Peck
On Thu, May 19, 2011 at 11:55 PM, Camillo Bruni <camillo.bruni(a)inria.fr>wrote:
> IMO this shouldn't change a thing, since KeyNotFound inherits from Error...
> having a look at it
>
> yes i know :(
but in pharo 1.2 it works. That's why I thought it could be related to
that.
>
> On 2011-05-19, at 23:45, Mariano Martinez Peck wrote:
> > So...it seems Pharo1.3 change Dictionary to throw KeyNotFound instead of
> Error.
> > Now, my image freezes with a loop. I would appreciate some help. I
> couldn't really analyzed the problem.
> > Fileine both FLPerson.st and ATest and run the test testDictionaryRehash.
> > In such test, a the end there is a
> >
> > self shouldnt: [aDictionary at: newPerson1] raise: KeyNotFound.
> >
> >
> > which raises the debugger pre-popup. if I try to click on the popup... ->
> loop/freeze.
> > You can interrupt it and see more or less what is happening.
> >
> > Camillo, can you take a look?
>
--
Mariano
http://marianopeck.wordpress.com
May 19, 2011