Skip to content

Commit 38c6856

Browse files
authored
Remove 'Compiling to a dynamic assembly' section from docs (#14737)
1 parent a8e39b3 commit 38c6856

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

docs/fcs/compiler.fsx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -81,28 +81,3 @@ let x = 1.0 + "" // a type error
8181
let 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-

0 commit comments

Comments
 (0)