Hi people,
Another basic question.
symintr my_print
fun my_print_integer (a: int) = (print_int (a); print ("\n"))
fun my_print_double (a: double) = (print_double (a); print ("\n"))
fun my_print_string (a: string) = (print_string (a); print ("\n"))
overload my_print with my_print_integer
overload my_print with my_print_double
overload my_print with my_print_string
(the original uses a `printf` which seems not there any‑more in ATS2)
If I remove the `symintr` declaration, it's still accepted. Looks like `overload` alone is enough?
Side note: I like explicit overloading declaration of ATS2 (in some context, I like when things are explicit).