warn
Builtin index · REPL & diagnostics
warn(msg)
Input: msg · Output: no output
What it is
Takes one argument, msg (a string), and prints warning: {msg} to the console. Non-fatal — execution continues on the next line, unlike error.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
warn(msg) | msg stringnot documented yet | no output | Non-fatal — execution continues on the next line, unlike error. |
Examples
From the documentation, and run by the build -- the output and the figure below are what the engine actually produced. Simplest first.
echo("temperature =", 23.5, "C")
warn("input clipped to [0, 1]")
print("done")
from repl-diagnostics