≈ the.bay.news

Crash on oom strategy

Ziggit
Crash on oom strategy
A program is (generally) unusable when it goes out of memory or some other lowlevel disaster happens. Would it make sense to crash these like this below? What are ways you people act on these? I am not talking about critical software but things like games etc. pub const Fatal = enum { mem, // other disasters... }; pub fn wtf(why: Fatal, sender: type, src: std.builtin.SourceLocation) noreturn { std.debug.panic("fatal error: {s} at {s}:{d} in {s}.{s}()", .{ @tagName(why), ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.