Files
mercury/tests/warnings/save.exp
Zoltan Somogyi 785ec7d4b9 Move see/seen/tell/told from io.m to prolog.m.
library/io.m:
library/prolog.m:
    Move the definitions of see/seen/tell/told and their binary variants
    from io.m to prolog.m, leaving behind forwarding predicates that are
    marked obsolete.

library/robdd.m:
    Replace tell/told with output to specified streams.

    Where exported predicates sent output to the current output stream,
    add a version that sends output to a user-specified stream.

    This required replacing user-provided predicates that wrote a variable
    to the current output stream with a user-provided function that simply
    returns the string representation of the variable, so that the resulting
    string could be printed to a *specified* stream.

NEWS:
    Document the changes above.

compiler/mode_constraint_robdd.m:
compiler/mode_robdd.implications.m:
    Conform to the changes above.

compiler/simplify_goal_call.m:
    Warn about calls to see/seen/tell/told in prolog.m as well as io.m.

    Warn about the binary versions of see/seen/tell told, and
    the binary versions of set_{in,out}put_stream.

tests/warnings/save.{m,exp}:
    Call prolog.see instead of io.see, since we want to test the warning
    from simplify_goal_call.m, not the warning about io.see being obsolete.
2021-08-30 15:44:09 +10:00

24 lines
1.5 KiB
Plaintext

save.m:026: The call to predicate `io.write_string'/3 could have an additional
save.m:026: argument explicitly specifying a stream.
save.m:028: The call to predicate `prolog.see'/4 could be made redundant by
save.m:028: explicitly passing the input stream it specifies to later I/O
save.m:028: operations.
save.m:031: The call to predicate `io.read_file_as_string'/3 could have an
save.m:031: additional argument explicitly specifying a stream.
save.m:034: The call to predicate `io.write_string'/3 could have an additional
save.m:034: argument explicitly specifying a stream.
save.m:038: The call to predicate `io.format'/4 could have an additional
save.m:038: argument explicitly specifying a stream.
save.m:043: The call to predicate `io.write_string'/3 could have an additional
save.m:043: argument explicitly specifying a stream.
save.m:106: The call to predicate `io.write_string'/3 could have an additional
save.m:106: argument explicitly specifying a stream.
save.m:109: The call to predicate `io.write_string'/3 could have an additional
save.m:109: argument explicitly specifying a stream.
save.m:111: The call to predicate `io.write_string'/3 could have an additional
save.m:111: argument explicitly specifying a stream.
save.m:118: The call to predicate `io.write_int'/3 could have an additional
save.m:118: argument explicitly specifying a stream.
save.m:123: The call to predicate `io.write_string'/3 could have an additional
save.m:123: argument explicitly specifying a stream.