RE: Eu's poor design

new topic     » goto parent     » topic index » view thread      » older message » newer message

> From: Andreas Rumpf [mailto:pfropfen at gmx.net]

> Matt Lewis wrote:

> > It seems that what you'd like to do is store the stack 
> > itself outside of the stack code's source file, and
> > pass it by reference.  You could still do somehting 
> > like this, albeit without the pass by reference (think
> > append/prepend).  It wouldn't be very elegant, but that's 
> > what you get for forcing a design.
>
> Forcing a design? What's wrong with doing it efficiently?
> Please read the last posts.

I don't see what efficiency is really gained by storing 
the data locally and passing by reference versus storing
the data where it will be manipulated and passing an 
index.  Either way, you're passing a 'pointer' of sorts.
You've just decided that one 'pointer' is good, and 
another is bad, and I don't understand the reasons
behind the judgment.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu