----boundary-LibPST-iamunique-497981947_-_-
Content-type: text/plain
No, they are not.
It is not efficient to initialized local (stack allocated) variables: it
has to be done at run time, on every procedure entry. Thus, it is a
better idea to let the programmer to initialized only those variables
that he knows need an initial value.
Greetings, René Dorta.
Universidad de Carabobo. Venezuela.
Hof, Philipp wrote:
>Hi all,
>
>In C local variables are not initialised.
>In C local structs are therefore often initialised with a macro like:
>
>ZeroMemory(&my_struct, sizeof(MY_STRUCT));
>
>How about Component Pascal? Are local variables, records (untagged) in
>Component Pascal initialised to zero by default?
>
>Thanks for your replies,
>Philipp
>--------------------------------------------
>
>To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
> blackbox-request{([at]})nowhere.xy>
>To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
>
>Send any problem reports or questions related to this email list to the list owner at
> owner-blackbox{([at]})nowhere.xy>
>Current posting policy:
>
>a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
>
>b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
>
>
>
>
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-497981947_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZ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