Does OCaml have a way to get the current file/module/script name? Something like:
- C/C++’s
argv[0] - Python’s
sys.argv[0] - Perl/Ruby’s
$0 - Erlang’s
?FILE - C#’s
ProgramName.Environment.CommandLine - Factor’s
scriptname/script - Go’s
os.Args[0] - Haskell’s
System/getProgName - Java’s
System.getProperty("sun.java.command").split(" ")[0] - Node.js’s
__filename - etc.
And posted to RosettaCode.