• There is this question on how to make clean terminal application using HaXe that targets C++.
  • The problem was that HaXe introduce new programmer with trace() to show message to the console.
  • However, trace() is actually quite high - level. Hence, the operating system does not know any messages that come from trace().
  • In HaXe everything that can target to native function from the operating system has Lib.print() and Lib.printf() to write something into console.
  • And for writing inputs into console, there are these codes.
var stdin         = Sys.stdin();
var string:String = stdin.readLine();

./20170320-1032-cet-input-and-output-at-operating-system-level-in-haxe-1.png