I have some questions on mikroPascal:
Pre-assigning a value to a var
In normal pascal language (TurboPascal, Borland-Pascal, FreePascal, ...), I can do this:
Code: Select all
var
varname : integer = 12;
begin
writeln(varname); // writes now "12"
varname:=22;
writeln(varname); // writes now "22"
end.
Visibility of code+vars in units:
Do units meanwhile have a really working separation of their interface and implementation section, allowing me to write procedures/functions and to define vars which are only visible within the unit, while some procedures/functions/vars are visible from outside?
As far as I can remember, "interface" is not understood and all code is visible. This makes it difficult to write good code with capsulated units.
rainer