[fpc-pascal] Syntax problem with first unit

Francisco Reyes lists at stringsutils.com
Sun Apr 5 17:25:26 CEST 2009


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 though. Just didn't 
know it would be a problem.

> That's also why the compiler suggested that you should use '.' after
> DebugPrint.

Aha!
The error didn't make sense, but with your explanation now it does.

I just changed the unit name.



More information about the fpc-pascal mailing list