In glulxcercise, there’s this line that the interpreter I’m writing can’t handle:
@binarysearch histogram 8 search_b 8 4 1 1 val;
If I understand correctly, it means it’s searching of key of size 8 (second value) with an offset of 1 (sixth value) in a struct of size 8 (fourth value).
But that would mean that the key goes beyond the end of the struct (because
KeyOffset + KeySize > StructSize).
Am I misunderstanding something? And if so, how am I supposed to handle this situation?