In article <[EMAIL PROTECTED]> you wrote:
> [EMAIL PROTECTED] wrote:
>> 
>> >For large structures this maybe the case, yes. But even there you either
>> >already use some sort of constructors or at least just can initialize it
>> with
>> >a memcpy(ptr, 0, sizeof(ptr)) explicitly.
>> Note that the memcpy idea is wrong for two reasons:
>>         It does at runtime what the language already has guaranteed at compile
>>         (most likely, load) time.
>> 
>>         It assumes that a NULL pointer and a 0.0 floating-point number are
>>         all-bits-zero.

> You forgot the third reason: it should be memset() :-)

Yes, memset(), sorry.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to