Alternatives

version 2 by Eric Eve

  • Home page
  • Beginning
  • Previous
  • Next



  • Section: Changes in Version 2

    The number of items that can appear on the right hand side of the comparison has been increased from five to six. This is probably more than enough for most purposes, but should several users wish this to be extended further that is something I could consider for a future version.

    Version 1 allowed objects and numbers to be compared with these phrases, and tentatively allowed other types of value. Version 2 is no longer tentative about comparing other types of value with these phrases. On the other hand Version 2 enforces stricter type checking at compilation time. Version 1 would allow:

        if the noun is either the ball or 2 or red or "fred",...
        
    Which was hardly useful, and which will no longer compile in Version 2.

    These changes employ features of Inform 7 that are new to Release 6E59.