Sorry for hijacking the thread, I just wanted to be sure I understood it properly. So now I think it's a kind of syntactical sugar for a nicer way of writing: Array with: (builder newButtonFor: self action: #onPrestamosClick label: 'Prestamos' help: '') with: (builder newButtonFor: self action: #onMaterialesClick label: 'Materiales' help: '') with: (builder newButtonFor: self action: #onSociosClick label: 'Socios' help: '') Does that sound like a good explanation? -- Cheers, Peter On Wed, Jan 2, 2013 at 11:15 AM, Frank Shearar <frank.shearar@gmail.com>wrote:
On 2 January 2013 09:52, Peter Hugosson-Miller <oldmanlink@gmail.com> wrote:
Guess it's a bit like the ##(some expression here) of VisualAge Smalltalk?
I think so, but I've only seen ##(foo) in GNU Smalltalk, where it's a compile-time literal: http://www.gnu.org/software/smalltalk/manual/gst.html
frank
-- Cheers, Peter.
On 2 jan 2013, at 10:27, Marcus Denker <marcus.denker@inria.fr> wrote:
On Jan 2, 2013, at 10:25 AM, Peter Hugosson-Miller <
oldmanlink@gmail.com> wrote:
I wasn't being ironic, I just didn't know. In my 18 years of Smalltalk
programming, I've managed to avoid coming across that particular syntax before. Is it Pharo-specific?
It was introduced in Squeak quite early (before 2000).
Marcus