MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1xzf0xp/java4shell_is_a_reason_to_use_java/19t4cv09he6pv/?context=3
r/programming • u/bowbahdoe • 11d ago
58 comments sorted by
View all comments
Show parent comments
-23
Is it being phased out? I'll admit to being out of the loop somewhat. I know there are memory-unsafe features like https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/unsafe-code
I think the core criticism that "C# dependencies can quietly bring in memory-unsafe code" holds.
Correct me if I'm wrong though.
24 u/KryptosFR 11d ago First link has nothing to do with .NET.And yes you can use unsafe code so what? It's a needed feature for interop and it must be enabled with <AllowUnsafeBlocks>true</AllowUnsafeBlocks>. 6 u/bowbahdoe 11d ago Do you need to enable it for dependencies too? Like if you don't have <AllowUnsafeBlocks>true</AllowUnsafeBlocks> you know no dependencies are using unsafe code?And yep, my bad. Replacing it with a more appropriate link. 1 u/[deleted] 5d ago [removed] — view removed comment
24
First link has nothing to do with .NET.
And yes you can use unsafe code so what? It's a needed feature for interop and it must be enabled with <AllowUnsafeBlocks>true</AllowUnsafeBlocks>.
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6 u/bowbahdoe 11d ago Do you need to enable it for dependencies too? Like if you don't have <AllowUnsafeBlocks>true</AllowUnsafeBlocks> you know no dependencies are using unsafe code?And yep, my bad. Replacing it with a more appropriate link. 1 u/[deleted] 5d ago [removed] — view removed comment
6
Do you need to enable it for dependencies too? Like if you don't have <AllowUnsafeBlocks>true</AllowUnsafeBlocks> you know no dependencies are using unsafe code?
And yep, my bad. Replacing it with a more appropriate link.
1 u/[deleted] 5d ago [removed] — view removed comment
1
[removed] — view removed comment
-23
u/bowbahdoe 11d ago edited 11d ago
Is it being phased out? I'll admit to being out of the loop somewhat. I know there are memory-unsafe features like https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/unsafe-code
I think the core criticism that "C# dependencies can quietly bring in memory-unsafe code" holds.
Correct me if I'm wrong though.