From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Rob Kennedy
Sent: Wednesday, November 15, 2006 9:00 PM
To: [email protected]
Subject: Re: [delphi-en] Crystal 8 UDF's
Warrick Wilson wrote:
> Won't n be 0 by the default compiler initialization behavior?
Where did you hear about that?
--
Rob
Rob - My apologies. You're right; Delphi DOESN'T work like that. I was
confusing it with something else I'd been working on today. Did a quick test
and a local uninitialized integer variable had a random integer value (and
did generate a "may not be initialized" warning). An uninitialized unit
level integer variable had a value of 0 in every quick test I tried.
But I suspect your point is that good programming practice would be to
initialize every variable explicitly before using it.