Created
May 5, 2020 06:07
-
-
Save grishace/a8ee55198378eb2fbf58bf7434b11ace to your computer and use it in GitHub Desktop.
Output parameter as tuple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open System.Runtime.InteropServices | |
type X() = | |
static member Outist(x: string, y: int, [<Out>] z: string byref) = | |
z <- "tuO" | |
(y, x) | |
[<EntryPoint>] | |
let main argv = | |
let a, z = X.Outist("1", 2) | |
printfn "%A %s" a z | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment