On 2 January 2013 10:39, Peter Hugosson-Miller <[email protected]> wrote:
> 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?

Yes.

frank

> --
> Cheers,
> Peter
>
> On Wed, Jan 2, 2013 at 11:15 AM, Frank Shearar <[email protected]>
> wrote:
>>
>> On 2 January 2013 09:52, Peter Hugosson-Miller <[email protected]>
>> 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 <[email protected]> wrote:
>> >
>> >>
>> >> On Jan 2, 2013, at 10:25 AM, Peter Hugosson-Miller
>> >> <[email protected]> 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

Reply via email to