It's easy to overload your own functions like so:
void testVal(loc l) {
println("LOC <l>");
}
void testVal(value v) {
println("VAL <v>");
}
such that testVal(|tmp:///|) will call the first method. I wish to do the same to IO::println:
void println(loc l) {
IO::println("my custom println function");
}
to serve for debug purposes. println(|tmp:///|) should now print "my custom println function". Is it possible to do this? For me this code still defaults to the IO implementation.