Prev | Current Page 423 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

JavaScript does not support look-behinds.
(?(?=expr)then|else) A conditional expression has a first portion that is a look-around
expression followed by two pattern definitions. If the look-around
pattern is a match the then pattern is matched next, otherwise the
else pattern is used. The look-around expression, as usual, does not
consume characters.
(?#comment) Where comment is any text. The comment and its container are simply
ignored and exist only for documentation purposes.
Part II: Server Side, JavaScript, and Flash; Oh My!
222
Timer
The main functionality of the haxe.Timer class is to permit the repetition of the execution of a function
over time. A timed execution is specifically addressed to event - based environments such as Flash and
JavaScript and, thus, Neko is excluded from the supported platforms. The only function that is also
available in Neko is the static method Timer.stamp() that returns the current time in seconds.
The Timer class requires that an interval time expressed in milliseconds, is set in the constructor.


Pages:
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435