Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3668

Show
Ignore:
Timestamp:
06/23/08 02:18:47 (4 months ago)
Author:
kris
Message:

add() now returns the value

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/util/container/more/Vector.d

    r3667 r3668  
    8787        **********************************************************************/ 
    8888 
    89         void add (V value) 
     89        V add (V value) 
    9090        { 
    9191                if (depth < vector.length) 
    92                     vector[depth++] = value; 
     92                    return vector[depth++] = value; 
    9393                else 
    9494                   error (__LINE__);