[m-rev.] for review: Add --trans-opt-deps-spec option.
Zoltan Somogyi
zoltan.somogyi at runbox.com
Fri Jan 13 02:20:59 AEDT 2023
2023-01-12 15:14 GMT+11:00 "Zoltan Somogyi" <zoltan.somogyi at runbox.com>:
>> +read_trans_opt_deps_spec_file(FileName, Result, !IO) :-
>> + io.read_named_file_as_string(FileName, ReadResult, !IO),
>> + (
>> + ReadResult = ok(Contents),
>> + string.length(Contents, ContentsLen),
>> + StartPos = posn(1, 0, 0),
>
> I will look into defining a function in the library to return this tuple,
> so people won't have to figure out the numbers each time they write
> code like this.
The attached diff does this. Is this worth adding to io.m?
Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.posn
Type: application/octet-stream
Size: 182 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20230113/e015d0db/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.posn
Type: application/octet-stream
Size: 2895 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20230113/e015d0db/attachment-0001.obj>
More information about the reviews
mailing list