[fpc-pascal] Parameter with no type defined?

Graeme Geldenhuys graeme at mastermaths.co.za
Tue Nov 17 08:44:10 CET 2009


dmitry boyarintsev wrote:
> if you declare parameter as Pointer, then you might be able to pass "nil"
> So the function should keep that possibility in mind.
> 
> Declaring parameter as untype shows that parameter is mandatory.


Thanks for the quick response. I looked in the Language Reference
documentation for FPC and couldn't find any mention of that. It simply
states that untyped parameters are not compatible with any other types
and must be cast before used.

I'll point this out to Michael van Canneyt.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-pascal mailing list