From: Andrew K. <ak...@mi...> - 2001-09-21 14:46:31
|
A point related to compilation management is that of "entry points". Different compilers have different means of indicating where the entry point to a standalone executable is, and this is a source of incompatibility when trying to compile SML'97 sources under different compilers. I can think of at least three: (a) Use-style, where "main" is essentially defined by side-effecting top-level definitions (e.g. val _ =3D run_my_program()). (b) C-style naming convention for the main function (e.g. fun main() =3D ...). (c) Compilation environment directive e.g. SML/NJ's exportFn command. It would be nice to agree on something here to save us all writing wrapper code every time. - Andrew.=20 |