dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.76k stars 3.99k forks source link

Allow unsafe code in Interactive Window #48631

Open tmat opened 3 years ago

tmat commented 3 years ago

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.

SamiG42 commented 7 months ago

Is this issue still active?

CyrusNajmabadi commented 7 months ago

Is this issue still active?

@SamiG42 yes. That's why it is still open.

SamiG42 commented 7 months ago

@SamiG42 yes. That's why it is still open.

Thanks. I am aware of this, but there has been no activity for 3 years.

SamiG42 commented 7 months ago

Sorry i just saw this image

CyrusNajmabadi commented 7 months ago

Thanks. I am aware of this, but there has been no activity for 3 years.

PRs definitely welcome?

SamiG42 commented 7 months ago

I don't know how to do it :(