[erlang-questions] Reason for "format string not a textual constant"

Eric Merritt cyberlync@REDACTED
Mon Oct 16 21:00:44 CEST 2006


Ah, so it's a warning that it can't give warnings. That makes a quite
a bit of sense, though the warning itself could be worded better.

On 10/16/06, xpdoka <xpdoka@REDACTED> wrote:
>
> Hi Eric,
>
> When io:format's first argument (the format string) is a constant string, the compiler can check it and issue a warning if the string is invalid, or has the wrong number of control sequences compared to the number of elements in the second argument. When the format string is not a constant, the compiler can warn you that it is unable to give you those previews warnings!
>
> Cheers,
> Dominic
> --
> Dominic Williams
> http://www.dominicwilliams.net
>
> ----
> _________________________________________________________
> Post sent from http://www.trapexit.org
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list