4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>WishList</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
30 <div class="sectionbody">
31 <div class="paragraph"><p>This page is mainly for recording recurring feature requests. If you
32 have a new feature request, you probably want to query interest on one
33 of the <a href="Contact">mailing lists</a> first.</p></div>
34 <div class="paragraph"><p>Please be aware of MLton’s policy on
35 <a href="LanguageChanges">language changes</a>. Nonetheless, we hope to provide
36 support for some of the "immediate" <a href="SuccessorML">SuccessorML</a> proposals in a
37 future release.</p></div>
41 <h2 id="_support_for_link_options_in_ml_basis_files">Support for link options in ML Basis files</h2>
42 <div class="sectionbody">
43 <div class="paragraph"><p>Introduce a mechanism to specify link options in <a href="MLBasis">ML Basis</a>
44 files. For example, generalizing a bit, a ML Basis declaration of the
46 <div class="listingblock">
47 <div class="content monospaced">
48 <pre>option "option"</pre>
50 <div class="paragraph"><p>could be introduced whose semantics would be the same (as closely as
51 possible) as if the option string were specified on the compiler
52 command line.</p></div>
53 <div class="paragraph"><p>The main motivation for this is that a MLton library that would
54 introduce bindings (through <a href="ForeignFunctionInterface">FFI</a>) to an
55 external library could be packaged conveniently as a single MLB file.
56 For example, to link with library <span class="monospaced">foo</span> the MLB file would simply
58 <div class="listingblock">
59 <div class="content monospaced">
60 <pre>option "-link-opt -lfoo"</pre>
62 <div class="paragraph"><p>Similar feature requests have been discussed previously on the mailing lists:</p></div>
63 <div class="ulist"><ul>
66 <a href="http://www.mlton.org/pipermail/mlton/2004-July/025553.html">http://www.mlton.org/pipermail/mlton/2004-July/025553.html</a>
71 <a href="http://www.mlton.org/pipermail/mlton/2005-January/026648.html">http://www.mlton.org/pipermail/mlton/2005-January/026648.html</a>
78 <div id="footnotes"><hr></div>
80 <div id="footer-text">
82 <div id="footer-badges">