This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] coalesce stack slots


On Tue, Sep 07, 2004 at 01:22:09PM -0400, Nathan Myers wrote:
> I "won", but I still find it hard to articulate precisely why it
> was right.  If you can explain it, posterity might benefit.

Because if I'd wanted a stack, I'd have used an abstract
data structure named "stack", not one named "vector".

Or at least that's me.

Dunno about libstdc++, but vec.h isn't a replacement for an
array.  The *primary* thing that's missing is that there's
no way to set vec->num to an arbitrary value.  I.e. the
equivalent of malloc(nelt * size).


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]