Wiki

Changes between Version 1 and Version 2 of Raise

Show
Ignore:
Timestamp:
05/02/10 14:52:50 (15 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Raise

    v1 v2  
    66the event they will be invoked after the event has been raised. 
    77 
     8The number and types of args given in the raise statement must match those declared [[BR]] 
     9in the sig used as the Type for the event being raised. 
     10 
    811See also [wiki:Listen] and [wiki:Ignore]. 
    912 
    1013== Grammar == 
    1114{{{ 
    12 raise <event> [ [,<source>] ,<event-args>] 
     15raise <event> [ [,<source>] ,<arg> [,<arg> ...]] 
    1316}}} 
    1417 
    15 If the <source> is not specified but <event-args> is, then '''this''' 
    16 will be implicitly passed as the source. 
     18In an attempt to default the most common case, if the number of arg parameters is one less than the number in the sig [[BR]] 
     19and the first arg is not '''this'''  [[BR]] 
     20then '''this''' will be implicitly passed as the source (first arg). 
    1721 
    1822If an event has been declared with a no param signature