Re: array with same value all the time?




"Tom de Neef" <tdeneef@xxxxxxxx> wrote in message
news:442837e7$0$11065$e4fe514c@xxxxxxxxxxxxxxxxx

Is there a particular reason to use a dynamic array rather than a Tlist
(with objects instead of records)? Adding and deleting would be more
elegant.

IMO a ring buffer is equally elegant. If has the advantages of being much
faster and requiring infrequent memory de/allocations. Using a dynamic
array, it can even grow (and if required shrink) to adjust for higher
(lower) than anticipated volumes.


.



Relevant Pages

  • Re: Closable Tabs in JTabbedPane
    ... > paint the icon to the right of the text (where it belongs, IMO). ... > is the most elegant attempt I've seen at solving this problem, ...
    (comp.lang.java.programmer)
  • Re: On the development of C
    ... Simple and elegant are key, IMO. ... "Moving generics into the compiler for ... lot with a good preprocessor. ...
    (comp.lang.c)
  • Re: Eastman Pagelli?
    ... I don;t think these are as sharp or elegant as the Pagelli design. ... Something a little clunky looking about these (imo) ...
    (rec.music.makers.guitar.jazz)
  • Re: Lisp on Lines
    ... few make me cry more than the current situation with Methods/ UnboundMethods/Procs/blocks/lambdas. ... but it really isn't elegant. ... (IMO) ...
    (comp.lang.ruby)