Hello,
does anybody know, if there is an option to make GPC understand the old TuboPascal syntax for using units, where the unit-name is explicitely written before every call? It looks like this:
----------------------------------------- program utest;
uses stapel;
var data : char;
begin data := 'a'; stapel.push(data); data := 'b'; stapel.push(data); data := 'c'; stapel.push(data);
stapel.top(data); stapel.pop; writeln(data); stapel.top(data); stapel.pop; writeln(data); stapel.top(data); stapel.pop; writeln(data); end. -----------------------------------------
We need this, because this syntax is used in the scripts for the students, but now we want to change our remote test-environment from TP to GPC...
BTW: I want to thank very much all those people, answering stupid newbie-questions, especially Frank Heckenbach!
Greetings, Michael
On 17 Jul 2001, at 12:19, Michael Paap wrote:
Hello,
does anybody know, if there is an option to make GPC understand the old TuboPascal syntax for using units, where the unit-name is explicitely written before every call? It looks like this:
program utest;
uses stapel;
var data : char;
begin data := 'a'; stapel.push(data);
[...]
This is called "qualified identifiers", and GPC does not (yet) support it.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Author of Chief's Installer Pro for Win32 Email: African_Chief@bigfoot.com http://www.bigfoot.com/~african_chief/