Re: [Pharo-users] Using symbol

2016-09-19 Thread p...@highoctane.be
You can search for usages of Symbol. Lots of things to learn indeed. On Mon, Sep 19, 2016 at 12:12 PM, frankl1_miky wrote: > Hi, > > I'll like to know what is happening exactly in background when I'm using a > symbol as in *Collection withAllSubclasses collect:

Re: [Pharo-users] Using symbol

2016-09-19 Thread Ben Coman
On Mon, Sep 19, 2016 at 6:12 PM, frankl1_miky wrote: > Hi, > > I'll like to know what is happening exactly in background when I'm using a > symbol as in *Collection withAllSubclasses collect: #numberOfLinesOfCode*. Nicolas has a good answer. Now you could explore this

Re: [Pharo-users] Using symbol

2016-09-19 Thread Nicolas Passerini
Collection withAllSubclasses collect: #numberOfLinesOfCode is the equicalent to Collection withAllSubclasses collect: [:each | each numberOfLinesOfCode ] What happens below is that (unary) symbols are polymorphic with one parameters blocks, i.e. they understand cull: and value:, which is

[Pharo-users] Using symbol

2016-09-19 Thread frankl1_miky
Hi, I'll like to know what is happening exactly in background when I'm using a symbol as in *Collection withAllSubclasses collect: #numberOfLinesOfCode*. I also want to know the other cases where I can use symbol. Is there any tutorial about using symbol? Thanks -- View this message in