- This wiki is out of date, use the continuation of this wiki instead
 
Father
From FenixWiki
(Difference between revisions)
												
			
			| Revision as of 19:32, 14 November 2007 (edit) Sandman (Talk | contribs) m ← Previous diff  | 
				Current revision (00:21, 19 December 2007) (edit) (undo) Sandman (Talk | contribs) m  | 
			||
| Line 11: | Line 11: | ||
| '''INT''' father | '''INT''' father | ||
| - | Father is a predefined [[local variable]].  | + | '''Father''' is a predefined [[local variable]]. '''Father''' holds the [[ProcessID]] of the [[process]]/[[function]] that called the current [[process]]/[[function]]. There are several other local variables which refer to the ProcessID of a related process: | 
| *[[Son]] | *[[Son]] | ||
| *[[Bigbro]] | *[[Bigbro]] | ||
Current revision
[edit] Definition
INT father
Father is a predefined local variable. Father holds the ProcessID of the process/function that called the current process/function. There are several other local variables which refer to the ProcessID of a related process:
[edit] Example
Program example;
Begin
    first_process();
    Loop
        frame;
    End
End
Process first_process()  // Declaration of the first process
Begin
    second_process();  // Call the second process
    Loop
        frame; // This loop makes "first_process()" a process rather than a function
    End
End
Process second_process()  //declaration of another process
Begin
    x = father.x; // These two lines use the father variable to move this process
    y = father.y; // to the position of first_process, as the father variable here
                  // holds the ProcessID of "first_process()"
    Loop
        frame;  
    End
End
Used in example: process, function, processID
| Local variables | |
| • Angle • Bigbro • Father • File • Flags • Graph • Id • Region • Reserved • Resolution • Size • Size_x • Size_y • Smallbro • Son • X • Y • Z • | |
