On 2 September 2013 14:32, Luc Fabresse <[email protected]> wrote:

>
> 2013/9/2 Stéphane Ducasse <[email protected]>
>
>> Alex
>>
>> from a style point of view I found really ugly to use the side effect
>> value.
>> I tend to think that they return #undefined as in Scheme.
>>
>
> yes
> but it would be nice if := were a message send and in that case it would
> make sense to write it like that.
>
> yes.. in that regard, if you replace assignment with message it will turn
it to simple setter method
which answers the value being set.
the only difference that in most cases setters answer the receiver of
message, but not value being set.

But if we imagine that variable is an object which holding some value, it
works similarly then e.g.
you assign the value to variable, and setter answers the variable itself
(as a receiver of message) but not its value.




> Luc
>
>
>> Stef
>>
>> On Sep 1, 2013, at 3:02 PM, Alexandre Bergel <[email protected]>
>> wrote:
>>
>> > Hi!
>> >
>> > I am facing a strange situation:
>> >
>> > The following expression raises an error:
>> > -=-=-=-=-=-=-=-=-=
>> > rawView add: (helpLabel := (ROElement on: 'Click here!') + ROLabel).
>> > -=-=-=-=-=-=-=-=-=
>> >
>> > Apparently, what is sent as argument to #add: is an integer.
>> >
>> > I have to update my code with :
>> > -=-=-=-=-=-=-=-=-=
>> > (helpLabel := (ROElement on: 'Click here!') + ROLabel).
>> > rawView add: helpLabel.
>> > -=-=-=-=-=-=-=-=-=
>> >
>> > To not have an error.
>> >
>> > This is really strange! By the way, this looks like the issue with
>> Metacello?
>> >
>> > Alexandre
>> >
>> > --
>> > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> > Alexandre Bergel  http://www.bergel.eu
>> > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>> >
>> >
>> >
>> >
>>
>>
>>
>


-- 
Best regards,
Igor Stasenko.

Reply via email to