[ruby-talk:02410] Re: Could missing 'end' be reported better?

From: h.fulton@...
Date: 2000-04-09 21:34:30 UTC
List: ruby-talk #2410
matz wrote:

> And this is a perfectly legal program, except that LAST `end' to the
> class clause is missing.  How can I find this error at proper place?
> Using indentation information?

No... this isn't Python. :)

There are only two possible solutions that I am aware of:
  1. Add text to this message, e.g., "There may be a 
     missing 'end' at an earlier point in the code."
  2. This one is not going to happen: Have more than one
     kind of 'end' -- say explicitly "end def", "end class",
     "end if", etc.

Hal 

In This Thread

Prev Next