Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!.POSTED!not-for-mail From: Willem Newsgroups: comp.lang.c Subject: Re: Array implementation of Stack Date: Fri, 17 Jun 2011 20:24:12 +0000 (UTC) Organization: Stack Usenet News Service Lines: 20 Message-ID: References: <4df9d41f$0$308$14726298@news.sunsite.dk> <4dfa55b3$0$23522$a729d347@news.telepac.pt> <4dfa7942$0$23529$a729d347@news.telepac.pt> <76a2f4ad-e221-4073-beec-cefd787da959@25g2000yqn.googlegroups.com> NNTP-Posting-Host: toad.stack.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: mud.stack.nl 1308342252 52308 2001:610:1108:5010::135 (17 Jun 2011 20:24:12 GMT) X-Complaints-To: abuse@stack.nl NNTP-Posting-Date: Fri, 17 Jun 2011 20:24:12 +0000 (UTC) User-Agent: slrn/0.9.9p1 (FreeBSD) Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:6296 Kleuskes & Moos wrote: ) Hmmm... Usually i like pop to just pop things off the stack, no more, ) no less. I developed a strong dislike for 'two-for-one' operations. I ) developed an even stronger dislike for all kinds of renaming schemes ) which only obfuscate basically very simple operations. And 'dup' is a ) commonly used stack primitive in it's own right, which exists neatly ) alongside push, pop and top. Then why should push() do two things at once ? It extends the stack, and then places something in the top slot. I have a strong dislike for inconsistent operations. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'm paranoid, don't you ! #EOT