User manual

190
mikoPascal PRO for PIC32
MikroElektronika
Name Spaces
Name space is a scope within which an identier must be unique. The mikroPascal PRO for PIC32 uses two distinct
categories of identiers:
1. Global variables are visible throughout the whole unit, from the place of declaration. Also. they can be seen in
other units, if they are declared above the Implementation section.
2. Local variables, parameters, types, function results - must be unique within the block in which they are declared.
For example:
var level : byte;
procedure control(sens : byte);
var location : byte;
begin
location := 1;
sens := location;
level := 123;
end;
procedure temperature;
begin
location := 0; // ILLEGAL
sens := 23; // ILLEGAL: redenition of sens
level := 95;
end;