RE: Eu's poor design
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Aug 18, 2003
- 487 views
> 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