> On 09 Mar 2015, at 13:54, Nicolai Hess <[email protected]> wrote:
> 
> 
> is x: (with colon) a valid inst var name ?

no.

> I can create the following object
> 
> Object subclass: #InstVarNameTest
>     instanceVariableNames: 'x:'
>     classVariableNames: ''
>     category: 'TTT'
> 
> But of course, I can not write an assignment statement.
> 

Yes, but it is good that it allows to do these things… e.g. you can load
a class definition with Slots in Pharo3, and it will put the slot definition
as the name. If it would raise an error, loading would be impossible.

> I am asking because if
> Symbol>>#asMutator is called an a symbol with colon like x:
> it returns
> x:: 
> 
> It looks like that x:: is not even a valid message selector.
> I would like to change the asMutator method to return
> x: if it is called on x:

Yes, that would make sense.

        Marcus


Reply via email to