This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: port-line and port-column


> i see the ambiguity.  since `move-to-column' expects 0-origin, i don't
> understand what you mean when you say "GNU standard" columns start with 1.

A reasonable point.  The "standard" for error messages (to the extent
there is one) is 1-origin (for both line and column numbers).

It does not necessarily follow that the internal *programming* interface
should be 1-origin, especially since both Scheme and ELisp have
0-origin vectors and strings.  (But note that Emacs buffer positions
are 1-origin!)

My main point is that if line numbers are 1-origin, so should column
numbers be, and vice versa.  I can accept either 0-orgin or 1-origin,
but not the inconsistency.

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner