Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue L61106     [previous patch]

Improvement to LibraryExtensions.RunUntil
Submitted by: Roger Firth     Appeared in: Library 6/11     Fixed in: -
Problem

The LibraryExtensions.RunUntil property (new at 6/11 and not currently used by the library) should return simply true or false if it does nothing.

Solution

Change the current code:

  RunUntil [ prop exitval a1 a2 a3
      obj rval;
      objectloop (obj in self)
          if (obj provides prop && obj.prop ofclass Routine) {
              rval = obj.prop(a1, a2, a3);
              if (rval == exitval) return rval;
          }
      return ~exitval;
  ],

so that "~exitval" becomes "~~exitval".


Last updated 17 April 2013. This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.