Branch: Tag:

2008-05-23

2008-05-23 00:33:35 by Martin Stjernholm <mast@lysator.liu.se>

Minor cleanup in the bootstrap code. Changed `-> from a variable to an
alias for `[].

Rev: lib/modules/Calendar.pmod/module.pmod:1.15

33: Inside #if 1
   if (what == "_module_value") return UNDEFINED;    booted++;    stage++; - // bootstrap in the right order -  master()->resolv("Calendar")["Timezone"]; -  master()->resolv("Calendar")["TimeRanges"]; -  object Time = master()->resolv("Calendar")["Time"]; -  master()->resolv("Calendar")["YMD"]; -  master()->resolv("Calendar")["Gregorian"]; +       // load ISO   // it can crash here if you're loading from compiled modules   // that is updated without all of the calendar module is updated    iso_utc=master()->resolv("Calendar")["ISO"];    iso_utc=iso_utc->set_timezone("UTC"); -  +  object Time = master()->resolv("Calendar")["Time"];    Time->Day = iso_utc->cDay;    stage--;    object tz=
85: Inside #if 1
   }    return defcal[what];   } - static mixed `-> = `[]; +  + static mixed `-> (string what) + { +  // This becomes an alias. +  return `[] (what); + }   #endif