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
19.13k stars 4.04k forks source link

Allow unsafe code in Interactive Window #48631

Open tmat opened 4 years ago

tmat commented 4 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 11 months ago

Is this issue still active?

CyrusNajmabadi commented 11 months ago

Is this issue still active?

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

SamiG42 commented 11 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 11 months ago

Sorry i just saw this image

CyrusNajmabadi commented 11 months ago

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

PRs definitely welcome?

SamiG42 commented 11 months ago

I don't know how to do it :(

hoangcuongzk1 commented 2 months ago

Any updates ?

CyrusNajmabadi commented 2 months ago

Any updates ?

See responses above :-)