csharpfftfsharpintegrationinterpolationlinear-algebramathdifferentiationmatrixnumericsrandomregressionstatisticsmathnet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
7.1 KiB
92 lines
7.1 KiB
<HTML><HEAD><TITLE>Microsoft.FSharp.Compatibility.OCaml.Sys</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
|
|
<br><dl>
|
|
<dt></dt><dd>
|
|
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.Compatibility.html'>Microsoft.FSharp.Compatibility</a>.<a href='Microsoft.FSharp.Compatibility.OCaml.html'>OCaml</a>.Sys </h1><br>
|
|
</dd>
|
|
<dt></dt><dd>
|
|
<table>
|
|
<tr valign='top'><td><summary>
|
|
Sys: Basic system operations (for ML compatibility)
|
|
|
|
This module is only included to make it possible to cross-compile
|
|
code with other ML compilers. It may be deprecated and/or removed in
|
|
a future release. You may wish to use .NET functions directly instead.
|
|
</summary>
|
|
<dt><h3>Values</h3></dt><dd>
|
|
<table width="100%%">
|
|
<tr><th width=60%>Value</th><th>Description</th></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using System.Environment.GetCommandLineArgs directly")>]
|
|
val argv : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__array-1.html'>array</a></pre></td><td><summary>
|
|
The array of command line options. Gives the command line arguments
|
|
as returned by <tt>System.Environment.GetCommandLineArgs</tt>.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using System.IO.Directory.SetCurrentDirectory directly")>]
|
|
val chdir : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Sets the current working directory for the process using <tt>System.IO.Directory.SetCurrentDirectory</tt>
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using System.Diagnostics.Process directly")>]
|
|
val command : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
Run the command and return it's exit code.
|
|
|
|
Warning: 'command' currently attempts to execute the string using
|
|
the 'cmd.exe' shell processor. If it is not present on the system
|
|
then the operation will fail. Use System.Diagnostics.Process
|
|
directly to run commands in a portable way, which involves specifying
|
|
the program to run and the arguments independently.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using System.AppDomain.CurrentDomain.FriendlyName directly")>]
|
|
val executable_name : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
|
|
Path of the current executable, using
|
|
<tt>System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,System.AppDomain.CurrentDomain.FriendlyName)</tt>
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using System.IO.File.Exists directly")>]
|
|
val file_exists : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
|
|
Returns true if a file currently exists, using System.IO.File.Exists(s).
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using System.IO.Directory.GetCurrentDirectory directly")>]
|
|
val getcwd : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
|
|
Returns the current working directory for the process using <tt>System.IO.Directory.GetCurrentDirectory</tt>
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using System.Environment.GetEnvironmentVariable directly")>]
|
|
val getenv : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
|
|
Call System.Environment.GetEnvironmentVariable. Raise <tt>KeyNotFoundException</tt> if the variable is not defined.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using System.IO.File.Delete directly")>]
|
|
val remove : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Deletes a file using <tt>System.IO.File.Delete</tt>.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a> ("Consider using System.IO.File.Move directly")>]
|
|
val rename : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a></pre></td><td><summary>
|
|
Rename a file on disk using System.IO.File.Move
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using System.Diagnostics.Process.GetCurrentProcess().UserProcessorTime.TotalSeconds directly")>]
|
|
val time : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__unit.html'>unit</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__float.html'>float</a></pre></td><td><summary>
|
|
Time consumed by the main thread. (for approximate timings).
|
|
Generally returns only the processor time used by the main
|
|
thread of the application.
|
|
</summary></td></tr>
|
|
<tr valign="top"><td><pre>[<<a href='../FSharp.Core/Microsoft.FSharp.Core.type_OCamlCompatibilityAttribute.html'>OCamlCompatibilityAttribute</a>
|
|
("Consider using sizeof<int> directly, where this returns a size in bytes")>]
|
|
val word_size : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__int.html'>int</a></pre></td><td><summary>
|
|
The number of bits in the "int" type.
|
|
</summary></td></tr>
|
|
|
|
</table>
|
|
</dd>
|
|
</td></tr>
|
|
<tr valign='top'><td>
|
|
<dt><h3>See Also</h3></dt><dd>
|
|
<a href="Microsoft.FSharp.Compatibility.OCaml.html">Microsoft.FSharp.Compatibility.OCaml</a> </dd>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
|
|
</BODY></HTML>
|
|
|