Subj : Re: OO compilers and efficiency To : comp.programming From : CBFalconer Date : Fri Jul 22 2005 07:53 pm Rob Thorpe wrote: > CBFalconer wrote: >> websnarf@gmail.com wrote: >>> >> ... snip ... >>> >>> A comparable implementation in C can just malloc big blocks of >>> pointers and set them all to NULL in a single for-loop or memset >>> or whatever. >> >> It certainly can't use memset for the purpose, since all bits zero >> need not describe NULL. That is a beginners elementary error. I >> would also suspect whatever. > > It doesn't invalidate this part of Paul's argument. If you're > programming for the DS9K you can write a loop that iterates over the > block you've allocated setting each to NULL instead of using memset. I didn't claim it did. I just wanted to be sure no young innocents were corrupted by that careless error. My comment was limited to what I quoted. -- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. USE worldnet address! .