From: mental@... Date: 2005-12-20T05:27:35+09:00 Subject: Re: shortcut to self.class ? Quoting mental@rydia.net: > Quoting gabriele renzi : > > > > I think it's a good idea to allow `class' to be called from > > within > > > methods if there's a dot after it > > > > > > class.some_method # legal > > > class # illegal, or rather, creates a new > class > > > > +1, but I wonder if this may be a limitation of the parser > > You could do it with some work, I think, but it'd make the > grammar even uglier. Well, I take that back, sort of. You've got to do lookahead for < versus << after class anyway. I think I will have a better sense of what's going to look reasonable once I've gotten further on the subset grammar (I guess I'll devote some time to that tonight). -mental