How do you gracefully stop the compiler? You can specify garbage to stop it,
but is there a better way?
static:
echo "compiling..."
proc display[T](message: T) =
when not (T is string):
compile error: "T is not a string"
echo message
display[string]("hello")
# Test with and without this line.
# display[int](5)
Run
- How do you gracefully stop the compiler? sflennik
