Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / localhost / WishList
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
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">
9
10
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
13 /*<![CDATA[*/
14 asciidoc.install();
15 /*]]>*/
16 </script>
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
18 </head>
19 <body class="article">
20 <div id="banner">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
23 </div>
24 </div>
25 <div id="header">
26 <h1>WishList</h1>
27 </div>
28 <div id="content">
29 <div id="preamble">
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&#8217;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>
38 </div>
39 </div>
40 <div class="sect1">
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
45 form</p></div>
46 <div class="listingblock">
47 <div class="content monospaced">
48 <pre>option "option"</pre>
49 </div></div>
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
57 contain:</p></div>
58 <div class="listingblock">
59 <div class="content monospaced">
60 <pre>option "-link-opt -lfoo"</pre>
61 </div></div>
62 <div class="paragraph"><p>Similar feature requests have been discussed previously on the mailing lists:</p></div>
63 <div class="ulist"><ul>
64 <li>
65 <p>
66 <a href="http://www.mlton.org/pipermail/mlton/2004-July/025553.html">http://www.mlton.org/pipermail/mlton/2004-July/025553.html</a>
67 </p>
68 </li>
69 <li>
70 <p>
71 <a href="http://www.mlton.org/pipermail/mlton/2005-January/026648.html">http://www.mlton.org/pipermail/mlton/2005-January/026648.html</a>
72 </p>
73 </li>
74 </ul></div>
75 </div>
76 </div>
77 </div>
78 <div id="footnotes"><hr></div>
79 <div id="footer">
80 <div id="footer-text">
81 </div>
82 <div id="footer-badges">
83 </div>
84 </div>
85 </body>
86 </html>