[Pharo-dev] I wanted to understand new list

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Oct 8 10:33:27 EDT 2013


On Oct 6, 2013, at 10:28 PM, Benjamin <benjamin.vanryseghem.pharo at gmail.com> wrote:

> On Oct 6, 2013, at 8:16 PM, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:
> 
>> And 
>> 
>> NewListExample new
>> 	withNewList;
>> 	openInWindow.
>> 
>> does not work.
>> 
>> separatorAfter: item at: index
>> 
>> 	^ separatorSelector
>> 		ifNotNil: [ self model perform: separatorSelector with: item with: index ]
> 
> Should probably be 
> 
> 	ifNotNil: [ self model perform: self separatorSelector with: item with: index ]
> 
>> 
>> separatorSelector
>> 	is a valueHolder and not a symbol
>> 
>> but I do not get it because 
>> 
>> 
>> separatorSelector
>> 	^ separatorSelector contents
>> 
>> separatorSelector: anObject
>> 	separatorSelector contents: anObject
>> 
>> really looks like a valueHolder.
>> 
>> Stef
>> 
> 
> 
> It is a value holder for sure :)
> 
> 
> I will have a look tomorrow to make the example works :)

:) cool

> 
> Ben
> 
> 





More information about the Pharo-dev mailing list