[Pharo-project] Beginner question about "self" in block

Garret Raziel boloomka at gmail.com
Wed Jan 25 16:48:43 EST 2012

I have another question, too short to create another thread. What happens
if some object has method a: and b: AND a:b:? For example, SmallInt has
method raisedTo:modulo:, but what will happen, if I define methods
SmallInt>>raisedTo: and SmallIt>>modulo: and then execute "5 raisedTo: 6
modulo: 3"? Will it use "raisedTo:modulo:" method or will it use
"raisedTo:" method and then send "modulo:" method to the result?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120125/dcaa9542/attachment-0001.html>

More information about the Pharo-dev mailing list