Comments (2)
This is probably some "as designed" feature, that wasn't there in F# 3 exe but now is, because otherwise loading too much code would take some time. Makes annoyingly hard race conditions to aspect oriented programming like caching and logging.
from fsharp.
This is probably some "as designed" feature, that wasn't there in F# 3 exe but now is, because otherwise loading too much code would take some time. Makes annoyingly hard race conditions to aspect oriented programming like caching and logging.
It may depend on how are you calling it, since it involves static constructor.
For example, if you just do
module SubModule
let x = System.Console.WriteLine "Call me first please!"
let ensureModuleLoad() =
System.Console.WriteLine "Call me next please!"
let y = x
()
ensureModuleLoad()
It will output
# dotnet run
Call me first please!
Call me next please!
from fsharp.
Related Issues (20)
- `MultipleDiagnosticsLoggers.Parallel` deadlock HOT 1
- Allow #nowarn to support the FS prefix on error codes to disable warnings HOT 3
- dotnet fsi crashes with lines longer than terminal width HOT 4
- Inline warning resulting in run time error (NotSupportedException) HOT 2
- An F# or C# shebang executable should use a cached binary on subsequent runs HOT 1
- F# files moved with by dragging HOT 1
- Enable F# Code Metrics and Analysis
- Improve onhover tooltip for visual studio HOT 1
- Support / fix replacing reference (Refactor -> Rename) of F# operator HOT 1
- [Feature request] Support solution view where projects are ordered based on number of dependent projects. HOT 2
- F# - Add Function Dependency Status to Functions/IntelliSense for F# (like C# has) HOT 1
- Internal error when dotting into delegate with 2 or more type parameters
- I'm getting unwanted navigation when holding `Ctrl` and hovering over operators like `&&` or `>`. Not sure if caused by this PR or a bug in VS. HOT 5
- Incorrect TailCall warning on async recursive functions HOT 2
- Allow #ParsedHashDirectives to have argument types other than strings HOT 1
- Provide better github.dev links for updating release notes HOT 5
- [Automated] PRs inserted in VS build main-34924.28
- Making TypeProviders easier: FS3033 needs base exception message HOT 2
- Integral range optimizations in resumable code computation expressions
- [Automated] PRs inserted in VS build main-34927.16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.