On Wed, 21 Jul 2004 13:37:15 +0200, Florian Gross wrote: Hi, > Peter Hickman wrote: > >> Any reason why x.last = value doesn't work? > > Because then x.last(5) = [1, 2, 3, 4, 5] would also have to work, but this > is currently syntactically impossible. > > I once submitted a RCR to allow that syntax, but it wasn't clear whether > the community or matz really wanted to have this: > I'd like that. I would use this to acces class variables as an collection. For example: myobj.names(2) = "myname" It would work like myobj.names[2] = "myname", but call the method on myobj in stead of myobj.names. Regards, Kristof