Фото: Israeli Army / Handout / Anadolu Agency / Getty Images
int sizes[num_classes] = {...};
,更多细节参见Snipaste - 截图 + 贴图
Previously, this code emitted a compile error. Now, it compiles just fine, because Zig never actually looks at the @compileError call.
Forgetting releaseLock() permanently breaks the stream. The locked property tells you that a stream is locked, but not why, by whom, or whether the lock is even still usable. Piping internally acquires locks, making streams unusable during pipe operations in ways that aren't obvious.