"self foo: (var := â¦)" vs "var := â¦. self foo: var"
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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
this is a VM problem, Use the latest (unstable) vm from here: http://files.pharo.org/vm/pharo/ Esteban updated the VM On 2013-09-01, at 15:02, Alexandre Bergel <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Ok, thanks! Alexandre On Sep 1, 2013, at 10:01 AM, Camillo Bruni <camillobruni@gmail.com> wrote:
this is a VM problem,
Use the latest (unstable) vm from here: http://files.pharo.org/vm/pharo/ Esteban updated the VM
On 2013-09-01, at 15:02, Alexandre Bergel <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
As far as I know, it was the same problem that induced the Metacello loading problem related with SmallInteger. Doru On Sep 1, 2013, at 5:37 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Ok, thanks!
Alexandre
On Sep 1, 2013, at 10:01 AM, Camillo Bruni <camillobruni@gmail.com> wrote:
this is a VM problem,
Use the latest (unstable) vm from here: http://files.pharo.org/vm/pharo/ Esteban updated the VM
On 2013-09-01, at 15:02, Alexandre Bergel <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- www.tudorgirba.com "Every successful trip needs a suitable vehicle."
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. Stef On Sep 1, 2013, at 3:02 PM, Alexandre Bergel <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
2013/9/2 Stéphane Ducasse <stephane.ducasse@inria.fr>
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. Luc
Stef
On Sep 1, 2013, at 3:02 PM, Alexandre Bergel <alexandre.bergel@me.com> 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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On 2 September 2013 14:32, Luc Fabresse <luc.fabresse@gmail.com> wrote:
2013/9/2 Stéphane Ducasse <stephane.ducasse@inria.fr>
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 <alexandre.bergel@me.com> 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.
participants (6)
-
Alexandre Bergel -
Camillo Bruni -
Igor Stasenko -
Luc Fabresse -
Stéphane Ducasse -
Tudor Girba