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 2 May 2008. The librarian in charge of this page is Roger Firth. Please email any comments, suggestions or corrections to roger@firthworks.com.