[m-dev.] for review: new module for handling file offsets
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Mar 9 09:06:42 AEDT 1999
On 08-Mar-1999, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
>
> For review by anyone. The long-term intention is to replace the line numbers
> in term__contexts with file offsets, which are the same size but carry more
> information. This extra information can be useful to the debugger, as well
> as for better error messages.
>
> library/file_offset.m:
> A new module to handle conversions from offsets into files into
> line number, column number pairs.
That module looks fine, but I don't think it is of sufficiently general
usefulness to warrant inclusion in the standard library.
> library/std_util.m:
> Add two new types:
>
> :- type maybe_error ---> ok ; error(string).
> :- type maybe_error(T) ---> ok(T) ; error(string).
Fine.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list