ooPIC Logo

Function Call

Main Index
Language Idx
Back to top of pageDescription:
 Instructs the Program Flow to branch to, execute the code within, and then return from a Function with a value.
Back to top of pageSyntax:
 The following shows the format of the Function Call syntax.
Visual Basic & BASICC & Java
[<exp><op>]<fun[(args)]>[<op><exp>][<exp><op>]<fun>[(args)][<op><exp>];


The following table lists the elements of the Function Call syntax

ElementDescription
BasicC & Java
<funname><funname>The name of the Function to branch to.
<args><args>An optional list of numeric expressions that are separated by commas.
<exp><exp>An optional expression.
<op><op>An optional operator that performs a conjunction between the expression and the function.
Back to top of pageOperation:
 See the Function Construct's operation

Caution: Procedures can be recursive; that is, hey can call themselves. This can lead to stack overflow and must be used carefully.

Back to top of pageRemarks:
 The values specified by the <argumentlist> element (if any) are passed to the Function by value.

Function can be recursive.  See caution below.

The ability to pass values to Functions was added to the ooPIC compiler in Version 3.0.

In C and Java syntax, the use of prototypes is not necessary.

Back to top of pageExample:
 
See the examples for the Function Construct.

Back to top of pageRelated Items:

 Unconditional Branch
Back to top of pageVersion History and Bug List:
 Firmware Ver A1: Introduced.

Bugs: No known bugs.


 

ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.