What is the type of main0 function?
I'm writing gtk3 library. However the g_application_run() function needs argv.
Of course, ATS language can use argv on main0 function. But what is the type?
What is the type of main0 function?
I'm writing gtk3 library. However the g_application_run() function needs argv.
Of course, ATS language can use argv on main0 function. But what is the type?
The following code is declared in prelude/basics_dyn.dats:
As you can see,
main0is overloaded withmain_void_0andmain_argc_argv_0. The typeargv(n)is essentially for a linear string array of sizenthat ends with the null value. Note that the null value is not counted as part of the size.