[fxruby-users] [Foxgui-users] FXVec* default constructors

David MacMahon davidm at astro.berkeley.edu
Mon Jan 26 13:10:16 EST 2009

On Jan 26, 2009, at 7:41 , Jeroen van der Zijp wrote:

> On Monday 26 January 2009, David MacMahon wrote:
>> I just noticed that the default constructors for FXVec* do not
>> initialize their elements.
> This is in the interest of speed; one often makes [very large] arrays
> of these things, and initializing them would be time-consuming.

Makes sense.

>> It would be nice if the docs were explicit on this "point". :-)
> I'll update the doc-comments.


> There is no rule that says it need to be initialized or not in C++;  
> it all
> depends on what the developer wants.

Agreed.  I'm sorry if my post sounded too whiny about this.  It was  
intended as a documentation request rather than a complaint.

Thanks for Fox!

More information about the fxruby-users mailing list