On Thursday 28 September 2006 12:42, Patrick R. Michaud wrote:

> > To push a little more the other direction, is it possible for the
> > compiler to detect symbol and method name conflicts?  
> > It's only the collision that makes a case ambiguous, right?

> I don't think that the compiler always knows at compile time
> what method names are available for any given object, so detecting
> "collisions" could be problematic.  

Oh no, of course not.

> However, it could certainly detect when a bareword symbol has
> been used as a method name and warn about it, requiring the use of an
> explicit obj.{symbol}() or obj.'symbol'() form to disambiguate it.

Yes, that is what I meant.  If there's a symbol in the current compilation 
unit with the same name as a bareword method call, require disambiguation.  
Otherwise, assume it's a bareword method call.

-- c

Reply via email to