[Pharo-users] BlockClosure

2019-10-23 Thread main
Hello fellow Pharoians (?) from a lonely Swede. I just found out about Pharo (and Smalltalk) two days ago and I'm already loving it :) However, there is a behavior I would like to change, or be enlightened about how it could be done. As I understand it (bear with me) BlockClosure from Kernel-Meth

Re: [Pharo-users] BlockClosure

2019-10-23 Thread main
Hi again! Just putting it out there for anyone interested. What I did was define the following in Object: |> aBlock ^ [ :x | x => self => aBlock ] and also: => msg ^ msg value: self This enabled me to compose like this (I know I probably violate every rule in the book, whatev