On Mon, Sep 19, 2016 at 6:12 PM, frankl1_miky
<mike1corporat...@gmail.com> 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 yourself.  First, as a reference inspect
"Collection withAllSubclasses" on its own.
Then try debugging into the expression (from the context menu in the
Playground.)

In particular in OrderedCollection>>collect:  step-INTO   "aBlock
value: ....."


For an even lower level (probably too low), try debugging into...
OpalCompiler compile: 'Collection withAllSubclasses collect:
#numberOfLinesOfCode'

or more simply debug...
OpalCompiler compile: '#numberOfLinesOfCode inspect'.

Other things you could explore
* Look at the class comment for class Symbol
* Look at the tests of class SymbolTest
* In the Browser with class Symbol selected, right-click and choose
Analyze>Class refs.

cheers -ben

>
> 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 context: 
> http://forum.world.st/Using-symbol-tp4916159.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>

Reply via email to