dotnet/roslyn

Allow unsafe code in Interactive Window

Open

#48,631 opened on Oct 15, 2020

View on GitHub
 (8 comments) (5 reactions) (0 assignees)C# (4,257 forks)batch import
Area-InteractiveConcept-Continuous ImprovementInteractive-ScriptingIDEhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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