Yes, that would be ok. But the problem is not the Inspector failing, the 
problem is that Pharo crashes, and that should not happen.

Bests,

Jordi



> SequenceableCollection is abstract.
> 
> Collection methods select: #isSubclassResponsibility. 
> 
> => {Collection>>#add:. Collection>>#do:. Collection>>#remove:ifAbsent:}
> 
> The inspector probably fails because it cannot enumerate the collection.
> 
> But I haven't actually tried your code.
> 
> On 15 Sep 2014, at 23:12, jdelg...@lsi.upc.edu wrote:
> 
> > Hi,
> > 
> > A student of mine has accidentaly found something interesting that may be 
> > already reported, but I do not have time to check.
> > 
> > The thing is simple:
> > 
> > 1) Create a class with accessors for f.
> > 
> > SequenceableCollection subclass: #Foo
> >     instanceVariableNames: 'f'
> >     classVariableNames: ''
> >     category: 'Varios'
> > 
> > 2) Foo class >> new: d 
> >     ^self new f: (Array new: d*d)
> > 
> > 3) Go to Workspace and inspect the following code
> > 
> >        | m |
> >         m := Foo new: 2
> > 
> > And Pharo crashes. Always crashes. I am using "Pharo 3.0 3" on OS X 10.6.8. 
> > I am pretty sure it is not a Smalltalk error since it works ok in Squeak 
> > and VisualWorks.
> > 
> > So, is this a known issue?
> > 
> > Bests,
> > 
> > Jordi
> > 
> > 
> 
> 

Reply via email to