I6: default return value of ChooseObjects()

Nathan Schwartzman presented me with a bug in Inform6lib (fixing in Mantis 1566) and a question that I cannot answer.

As far back as 5/12 of the Inform Library, there has been a stub function for ChooseObjects that returns 2. How does this work?

You’re talking about the line “#Stub ChooseObjects 2;” ?

That doesn’t mean “generate a function that returns 2”. It means “generate a function that takes two arguments and returns zero”. See DM4 chapter 38.

I figured I was missing something. Thanks!

Are you Nathan? I forget.