[fpc-pascal] Parameter with no type defined?
dmitry boyarintsev
skalogryz.lists at gmail.com
Tue Nov 17 07:59:10 CET 2009
On Tue, Nov 17, 2009 at 9:57 AM, Graeme Geldenhuys
<graeme at mastermaths.co.za> wrote:
> If I have a declaration as follows... what type is InData and OutData?
> Pointers? If it is a generic Pointer type, then why doesn't developers
> simply declare it as pointer? What is the advantage of not mentioning
> the type then?
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,
dmitry
More information about the fpc-pascal
mailing list