Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Francisco Reyes
Mehmet Erol Sanliturk writes: Unit and function names DebugPrint are the same . Pascal is case insensitive . Making their cases different does NOT make them different . Please make them different and retry . Thanks. That worked. It may help newcomers like myself if this was mentioned on the

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Tomas Hajny
On Sun, April 5, 2009 16:03, Francisco Reyes wrote: Mehmet Erol Sanliturk writes: Unit and function names DebugPrint are the same . Pascal is case insensitive . Making their cases different does NOT make them different . Please make them different and retry . Thanks. That worked. It may

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread David W Noon
On Sun, 2009-04-05 at 10:03 -0400, Francisco Reyes wrote: Mehmet Erol Sanliturk writes: Unit and function names DebugPrint are the same . Pascal is case insensitive . Making their cases different does NOT make them different . Please make them different and retry . Thanks. That

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Michael Van Canneyt
On Sun, 5 Apr 2009, Francisco Reyes wrote: Mehmet Erol Sanliturk writes: Unit and function names DebugPrint are the same . Pascal is case insensitive . Making their cases different does NOT make them different . Please make them different and retry . Thanks. That worked. It

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Francisco Reyes
Michael Van Canneyt writes: It may help newcomers like myself if this was mentioned on the ref document. Just double checked and it does not mention this. It most certainly does: see the section on reserved words, first paragraph. In the ref document? Page10? Section 1.3? Just looked there

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Francisco Reyes
Tomas Hajny writes: Note that although having the unit named equally to a function, procedure or a variable defined within the unit (or elsewhere) is not really advisable, it is possible, but you need to take scoping rules into account Thanks for the note. I wasn't purposedly trying to do it

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Mehmet Erol Sanliturk
Tomas Hajny wrote: Note that although having the unit named equally to a function, procedure or a variable defined within the unit (or elsewhere) is not really advisable, it is possible, but you need to take scoping rules into account when trying to access the function, procedure or variable.

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Tomas Hajny
On Sun, April 5, 2009 17:23, Francisco Reyes wrote: Michael Van Canneyt writes: It may help newcomers like myself if this was mentioned on the ref document. Just double checked and it does not mention this. . . In particular it would be helpful if that note (ie name of fuction and unit

[fpc-pascal] Syntax problem with first unit

2009-04-04 Thread Francisco Reyes
Trying my first unit and getting an error I can't figure out. --- unit unit debugprint; Interface function DebugPrint(ProgLevel, CallLevel:integer; MessageIn: string):string; Implementation function DebugPrint(ProgLevel, CallLevel:integer; MessageIn: string):string; begin if ProgLevel=

Re: [fpc-pascal] Syntax problem with first unit

2009-04-04 Thread Mehmet Erol Sanliturk
Francisco Reyes wrote: Trying my first unit and getting an error I can't figure out. --- unit unit debugprint; Interface function DebugPrint(ProgLevel, CallLevel:integer; MessageIn: string):string; Implementation function DebugPrint(ProgLevel, CallLevel:integer; MessageIn: