[erlang-questions] Reason for "format string not a textual constant"
xpdoka
xpdoka@REDACTED
Mon Oct 16 14:00:56 CEST 2006
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
More information about the erlang-questions
mailing list