Jim Grandy wrote: > > On Jun 28, 2006, at 10:16 AM, Max Carlson wrote: > >> Jim Grandy wrote: >>> On Jun 28, 2006, at 4:02 AM, P T Withington wrote: >>>> On 2006-06-27, at 23:26 EDT, Jim Grandy wrote: >>>> >>>>> Since we're using ECMAScript standard functions >>>>> (setInterval/clearInterval), there's no reason the idle/timer code >>>>> couldn't be completely cross platform. >>>> >>>> FWIW, setInterval/clearInterval are not part of ECMAScript. >>>> http://www.w3.org/TR/Window/#window-timers In any case, they seem >>>> to be supported in both SWF and DHTML. >>> Ah, thanks. I thought I had read that they were, but a quick check of >>> the ECMA-262 specification >>> (http://www.ecma-international.org/publications/standards/Ecma-262.htm) >>> confirms that you are right. >> >> I suppose this means the core timer/idle functionality should be in >> the kernel after all... > > Well, sort of. We could postulate a theoretical annex to the kernels > that provides basic runtime services for JavaScript VMs that don't have > them. So our kernel writer's guide would list which non-ECMA functions > are expected, and expect kernel authors to provide those functions if > they don't already exist. > > So we'd write LzTimer/LzIdle once using setInterval/clearInterval (or > setTimeout/clearTimeout if we can figure out a clean way of emulating > setTimeout using setInterval), and expect kernel authors to provide > those functions if they don't exist.
Makes sense, e.g. the swf7 kernel would define set/clearTimeout() emulation in Legals. -Max _______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
