From: Vin Raja Date: 2007-06-02T12:42:54+09:00 Subject: Is [ ] really a method ? Hi all, Well while running down the text I read that [] (used in case Arrays and Hashes) is actually a method called on that Array/hash object and also that it can be overridden. well point taken. BUT if this is just another case of operator overloading then how come we can call a[1]='item' rather than calling a[]1 ='item' (Anyways this gave me a syntax error) Or perhaps it is just another case of Syntactic Sugar? Or perhaps not, because if that has to be true than the second statement should also have been true. So Is [] really a method or is a simple grammar token? Thanks Raja -- Posted via http://www.ruby-forum.com/.