I put a “find the three memory-safety bugs in this C program” question on my exam, and of course there are (at least) four bugs 🤦
@adrian Good thing you hedged with (at least). :)
@adrian Did you include some landmines involving lifetime-end pointer zap? Although it looks like it's one of the things that might get "fixed" in the spec since it makes too much existing useful code into UB.
@pervognsen I did not, but there are more exams coming in this class… 🤪