Code: Select all
MODULE Win; IMPORT SYSTEM;
PROCEDURE Proc (VAR [nil] lpModuleName: ARRAY OF CHAR);
END Proc;
BEGIN
Proc(NIL)
END Win.
How it works, or rather, does not work:
The error is really caught inside DevOPC, and that's very good, but it's the wrong level. It should be caught at the moment of declaration in DevOPP.FormalParameters procedure. The suggested fix:
The result of its work: