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
[ Parent
| on HN ]
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