ooPIC Logo

Procedure 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 Procedure.
Back to top of pageSyntax:
 The following shows the format of the Procedure Call syntax.
Visual Basic & BASICC & Java
Call <procedurename>[(<argumentlist>)]<procedurename>[(<argumentlist>)];

The following table lists the elements of the Procedure Call syntax

Element

Description

Basic

C & Java

Call Procedure Call beginning keyword. OPTIONAL, the call is not required. In C/Java call is not supported and will cause a compiler error.
<procedurename><procedurename>The name of the Procedure to branch to.
<argumentlist><argumentlist>An optional list of numeric expressions that are separated by commas.

Back to top of pageOperation:
 See the Procedure Construct's operation

Caution: Procedures can be recursive; that is, they can call themselves. This can lead to stack overflow and must be used carefully, preferably not at all.

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

In C and Java syntax, the use of prototypes is not needed.  The ooPIC compiler is capable of determining the correct usage without them.

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

Back to top of pageRelated Items:

 Procedure Declaration

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.