Re: initializer for array of struct



ChrisA <ChrisA@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Thanks. I don't know why I didn't try that. I'm used to the fairly flexible
> initialization syntax from C/C++. I think I was expecting that there would
> be a way to initialize each without allocating off the heap.

Well, if it weren't in an array, it still wouldn't be allocating on the
heap. "new" doesn't imply "heap" in C#.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: Java slow ?
    ... Allocating objects on the heap in Java is FAST. ... Instead of locating an element of array you must ...
    (comp.lang.java.programmer)
  • Re: initializing an array of user-defined data types
    ... After allocating it, I want to initialize it so that after ... because your array is allocatable. ... You could even use NULLby having a component of piece be a pointer, ...
    (comp.lang.fortran)
  • Re: Limits to memory allocated in DLL
    ... >inside a DLL? ... >I am creating the following array inside a dll: ... allocating this memory in the DLL, ...
    (microsoft.public.vc.mfc)
  • Re: [ltt-dev] LTTng 0.108 provides many performance improvements
    ... Mathieu Desnoyers wrote: ... linked list to manage the buffer pages. ... the accesses done on the array will never cause vmalloc faults (I think ... vmalloc_sync_allafter allocating the array to make sure the TLBs are ...
    (Linux-Kernel)
  • Re: Ada.Command_Line and wildcards
    ... heap wouldn't work either. ... allocating objects of type array (1 .. ... I think Hyman remembers correctly: rewriting Ada programs ... was determining an array size and was of type Natural or Positive. ...
    (comp.lang.ada)