Another problem with uses
Hi,
i tested the following script with 3 files :
//Main.pas
Uses 'Global.pas', 'Unit1.pas' ;
Begin
GlobalTest ;
Unit1Test
End .
//Global.pas
Procedure GlobalTest ;
ShowMessage ('GLOBALTEST')
End ;
Begin
End.
//Unit1.pas
Uses 'Global.pas' ;
Procedure Unit1Test ;
Begin
GlobalTest ;
ShowMessage ('UNIT1TEST')
End ;
Begin
End.
Compilation results in "Identifier GlobalTest redefined.
What can i do ??
Thanks in advance
Willi
i tested the following script with 3 files :
//Main.pas
Uses 'Global.pas', 'Unit1.pas' ;
Begin
GlobalTest ;
Unit1Test
End .
//Global.pas
Procedure GlobalTest ;
ShowMessage ('GLOBALTEST')
End ;
Begin
End.
//Unit1.pas
Uses 'Global.pas' ;
Procedure Unit1Test ;
Begin
GlobalTest ;
ShowMessage ('UNIT1TEST')
End ;
Begin
End.
Compilation results in "Identifier GlobalTest redefined.
What can i do ??
Thanks in advance
Willi
Comments
1. Use one big pas-file and
2. hope that you fix the problem in a later version ?
or is there another solution ?
Thanks
Willi
I'll try to do something with this in the next release.