[fpc-pascal] Initializing a record-type variable to get rid of the false-positive compiler hint
Bihar Anwar
bihar_anwar at rocketmail.com
Thu Apr 15 17:14:47 CEST 2010
Thank you very much Jose, that's a detail explanation. Forget my wrong observation before.
----- Original Message ----
From: José Mejuto <joshyfun at gmail.com>
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Sent: Thu, April 15, 2010 10:11:03 PM
Subject: Re[2]: [fpc-pascal] Initializing a record-type variable to get rid of the false-positive compiler hint
Hello FPC-Pascal,
Thursday, April 15, 2010, 6:43:41 AM, you wrote:
BA> Thanks for your reply José, but what is the philosophy behind
BA> the solution? and What are the reasons for $PUSH and $POP? Also, I
BA> tried to remove the $HINTS directive, and it worked fine without
BA> it. Could you explain this?
Rec parameter is qualified as "out" so, the enter values is
non-important and the compiler will not generate the "non initialized"
hint.
The $PUSH pushes in fpc stack the current settings about hints,
warnings, alignement, etc, then I change the hints to off, because
FillByte could produce (not sure with formal parameter) the hint
message and then $POP restores previous settings about hints and other
directives.
--
Best regards,
José
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list