News for hackers. Stuff that matters.
Re:An intro to Zig's integer casting for C programmers by ArtifTh on Tuesday May 11, 2021 @11:15AM (#27119080)
C# has GC by default, but you can do manual memory management in "unsafe" blocks
Re:An intro to Zig's integer casting for C programmers by pjmlp on Wednesday May 12, 2021 @02:09AM (#27127178)
You can also do manual memory management in safe code.

- value types

- stackalloc is safe since C# 7

- SafeHandles since C# 2.0

- IDispose interface

- IDispose like Dispose() since C# 8

- Marshal class since C# 1.0

- Span<>() classes since C# 7

Re:An intro to Zig's integer casting for C programmers by pjmlp on Wednesday May 12, 2021 @05:15AM (#27128305)
Forgot to mention:

- static lambdas since C# 9

- native function pointers since C# 9