Naming "Feature" with Harbour Compiler?
Posted: Sun Nov 23, 2008 5:55 am
Hi all
It seems that if I use the same name for the source file of a class as the class itself ( for example CLASS myclass in file myclass.prg ) the harbour compiler gives an error, namely:
Error F0002 Redefinition of procedure or function: 'MYCLASS'
1 error
and the compilation ( to C source ) fails.
Is this correct / normal behaviour? Certainly xHarbour doesn't have any such problem.
Is this why so many classes are prefaced with a "T" ?
Thanks
xProgrammer
It seems that if I use the same name for the source file of a class as the class itself ( for example CLASS myclass in file myclass.prg ) the harbour compiler gives an error, namely:
Error F0002 Redefinition of procedure or function: 'MYCLASS'
1 error
and the compilation ( to C source ) fails.
Is this correct / normal behaviour? Certainly xHarbour doesn't have any such problem.
Is this why so many classes are prefaced with a "T" ?
Thanks
xProgrammer