dotnet/roslyn

Allow unsafe code in Interactive Window

Offen

#48.631 geöffnet am 15.10.2020

 (8 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-InteractiveConcept-Continuous ImprovementInteractive-ScriptingIDEhelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

Currently the code is compiled in safe context, which makes experimenting with (function) pointers awkward (all unsafe code must be wrapped in unsafe { }).

We should enable unsafe context by default.

In addition, we could add #unsafe (on|off|enable|disable) host command that toggles the setting.

Contributor Guide