2015-03-09 22:09 GMT+01:00 Sean P. DeNigris <[email protected]>:

> Marcus Denker-4 wrote
> >> is x: (with colon) a valid inst var name ?
> > no.
>
> Why complicate the system by special-handling illegal variable names? Just
> let the incorrect x: become the just-as-incorrect x::, no? Or am I missing
> something?
>

No it is not about handling illegal variable names.
The question is, what should #name:  asMutator return
1. #name: because it is already a mutator
2. #name:: because it might be the mutator for variable "name:"

(2) is how it actually behaves, but because "name:" is not a valid instance
variable name,
returning #name:: does not makes sense, so I choose option (1).


nicolai




>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context:
> http://forum.world.st/valid-name-for-an-instance-variable-tp4810632p4810780.html
> Sent from the Pharo Smalltalk Developers mailing list archive at
> Nabble.com.
>
>

Reply via email to