File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -81,28 +81,3 @@ let x = 1.0 + "" // a type error
8181let errors1b , exitCode1b =
8282 checker.Compile([| " fsc.exe" ; " -o" ; fn3; " -a" ; fn2 |])
8383 |> Async.RunSynchronously
84-
85- (**
86-
87- Compiling to a dynamic assembly
88- ===============================
89-
90- You can also compile to a dynamic assembly, which uses the F# Interactive code generator.
91- This can be useful if you are, for example, in a situation where writing to the file system
92- is not really an option.
93-
94- You still have to pass the "-o" option to name the output file, but the output file is not actually written to disk.
95-
96- The 'None' option indicates that the initialization code for the assembly is not executed.
97- *)
98- let errors2 , exitCode2 , dynAssembly2 =
99- checker.CompileToDynamicAssembly([| " -o" ; fn3; " -a" ; fn2 |], execute= None)
100- |> Async.RunSynchronously
101-
102- (*
103- Passing 'Some' for the 'execute' parameter executes the initialization code for the assembly.
104- *)
105- let errors3 , exitCode3 , dynAssembly3 =
106- checker.CompileToDynamicAssembly([| " -o" ; fn3; " -a" ; fn2 |], Some( stdout, stderr))
107- |> Async.RunSynchronously
108-
You can’t perform that action at this time.
0 commit comments