Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 1 and Version 2 of IncreasingSizeOfDynamicArrayExample

Show
Ignore:
Author:
nascent (IP: 67.110.193.99)
Timestamp:
02/10/06 07:48:40 (18 years ago)
Comment:

Source link is invalid, added some pointers

Legend:

Unmodified
Added
Removed
Modified
  • IncreasingSizeOfDynamicArrayExample

    v1 v2  
    55== Description == 
    66 
    7 You can't use "r.length++;" to increase the size of a dynamic array
     7You can't use "r.length++;" or "r.length += 5" to increase the size of a dynamic array. Also, there is still overhead when resizing an array, guessing a needed size would be better
    88 
    99== Example == 
    2626} 
    2727}}} 
    28  
    29 == Source == 
    30  
    31 || Link || http://www.dsource.org/tutorials/index.php?show_example=79 || 
    32 || Posted by || jcc7 || 
    33 || Date/Time || Fri May 14, 2004 9:49 pm ||