No, I still use the stupid way:
function stuff: integer;
begin
stuff := 0
end;
To me the idea is, parameters can be safely ignored (there is also a "reference check off" switch /nrf or /norefer, but that affects the entire program). Functions always return *something*, so you might as well specify what it is, even for a dummy function. Otherwise, you are asking the compiler to guess for you.
Probally the bottom line is that its a lot less trouble than pinning down all those parameters.
To come clean, I use the /norefer flag a lot on new code. Hey, I'm lazy. On the other hand, my previous compiler (SVS 386 Pascal) either didn't do reference checking, or I didn't have it on, and I found my code littered with excess variables when I moved to IP Pascal.
Frank Heckenbach wrote:
I basically agree. Can your `reference' also be used to throw away unwanted function results, or is it only for variables?
Frank