From: Phil Mitchell Date: 2001-09-26T22:07:16+09:00 Subject: [ruby-talk:21718] Re: Help understanding self ... That helps. It's a parser issue, and the syntax of the language is overloaded. It's not a complaint, btw. I'm really enjoying learning ruby, and I was just curious... Thanks! On Wed, 26 Sep 2001 08:18:40 +0900, David Alan Black wrote: [snip] > > It comes down to finding a way for "[]" to mean different things. > Where there might be ambiguity, some decision has to be made. Another > example is: > > puts class > > This causes an error, because even though there's a method > Object#class, the bare "class" is parsed as the keyword "class", > and then having nothing come after it makes no sense. It's not > a call to method #class that behaves strangely; it's not a method > call at all. > > > David > > -- > David Alan Black > home: dblack@candle.superlink.net > work: blackdav@shu.edu > Web: http://pirate.shu.edu/~blackdav > >