ENTRY


9.0C

 

The ENTRY instruction must always follow the (L)FUNCTION instruction to define the ending point for the (L)FUNCTION input parameters and the beginning of the local data variables or code. The instruction uses the following format:

 

 

 

ENTRY

Flags Affected: NONE

Note the following:

  1. A program execution label is not allowed on the ENTRY definition line.

  2. The ENTRY must be specified within the scope of a (L)FUNCTION.

  3. Execution code for the (L)FUNCTION cannot be coded before the ENTRY instruction.

  4. All input parameter variables for the (L)FUNCTION must be declared before the ENTRY instruction.

  5. All local variables for the (L)FUNCTION must be declared immediately after the ENTRY instruction.

  6. No local variables can be declared after the first execution instruction in the (L)FUNCTION.

 

 

See Also: FUNCTION, FUNCTIONEND, CALL, Functions, Program Control Instructions

 



PL/B Language Reference DSCNCT EVENTCHECK