Re: Difference between method and block - with examples

Oscar Martinez <[email protected]>
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>
2011/6/15 Oscar Martinez <[email protected]>:

>
> I think the explanation is in the documentation:
> "A method is an anonymous function which, when called, creates an object to
> store its locals and sets the local's proto pointer and its self slot to the
> target of the message"
> So, a method can access his locals slots and the ones from the object who
> activated it.

Oops, my mind was in another place: "the object who activated it"
should be "the object it belongs to"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.