On Tue, 12 Mar 2013 08:54:43 -0400, Bradley Lowekamp said: >I am thinking about using the "alloca" function in some code I'm working >on for ITK, and wonder what other people think of it or others experience... > >From the BSD Library Functions Manual: > >DESCRIPTION > The alloca() macro allocates size bytes of space in the stack frame >of the caller. This temporary space is automatically freed on return. > >I am planning on using it for some dimension sized array in compiled >templateless code, in lieu of C99 dynamic stack based arrays.
Given that ITK has no use of alloca() currently, I'd be loathe to add it, personally. Does ITK currently use C99 VLAs anywhere? If so, that would be a precedent, and I'd stick with that. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng [email protected] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://kitware.com/products/protraining.php Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://www.itk.org/mailman/listinfo/insight-developers
