[m-dev.] for review: fixing formatting of HLDS dumps

Peter Schachte schachte at cs.mu.OZ.AU
Fri Feb 19 10:06:20 AEDT 1999


On Thu, Feb 18, 1999 at 07:47:53PM +1100, Fergus Henderson wrote:
> It would be better, IMHO, to use an error message
> like this:
> 
> 	...
> 	foo.m:001:   error: undefined symbol `\n /0'.
> 
> (Trying to print out the symbol name in quotes, i.e.
> 
> 	foo.m:001:   error: undefined symbol `'\n '/0'.
> 
> would be worse, IMHO.)

I think either

	foo.m:001:   error: undefined symbol '\n '/0.

or

	foo.m:001:   error: undefined symbol `\n '/0.

would be much better (but preferably the first).  And for consistency

	foo.m:001:   error: undefined symbol foo/0.

seems perfectly understandable.  Alternatively

	foo.m:001:   error: undefined symbol: foo/0.

might be a little clearer.  In any case

	foo.m:001:   error: undefined symbol `\n /0'.

seems pretty confusing.  What will the user think when the error is a
little different and she reads:

	foo.m:001:   error: undefined symbol `\n /0/0'.

?

-- 
Peter Schachte                     The use of COBOL cripples the mind; its
mailto:schachte at cs.mu.OZ.AU        teaching should, therefore, be regarded
http://www.cs.mu.oz.au/~schachte/  as a criminal offense.
PGP: finger schachte at 128.250.37.3      -- E. W. Dijkstra 



More information about the developers mailing list