Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: Immutable Datastructures with good Sharing Date: Sat, 05 Nov 2011 23:38:08 +0100 Organization: albasani.net Lines: 21 Message-ID: References: <4839047.311.1320512815263.JavaMail.geo-discussion-forums@pref15> <24CdnZZfrM8C5SjTnZ2dnUVZ_qmdnZ2d@posted.palinacquisition> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net Hm8GmWzUfKZdnmykQ5MDaQ4cmb0kVsINOyM1WiP9N0Bn05LRuLFkmno63SO+307XBUZ3I6xSLJWjLrc3QCiUlA== NNTP-Posting-Date: Sat, 5 Nov 2011 22:38:09 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="Fc9qgya8IhSVW12BR5Wh1274s83XD9FoGY4HoYQ5dloNtrqYS14fy1qzXtvUBga+5ugXlNfHoIoRaHMmXRsnBjsBGTwiPP77pcg/T5Ky+noG6qAlQfHrLPAYhV8OS0UE"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110928 Firefox/7.0.1 SeaMonkey/2.4.1 In-Reply-To: Cancel-Lock: sha1:g+E1iTYY4sjn4NtcNSDEnpfE6sY= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9628 Eric Sosman schrieb: > Why do you want an immutable *Q*U*E*U*E*? Well the correct answer would be. The reason that my queues should be immutable, are exactly the same as for the stacks. I want to see the history. I wrote 19:52: "In the current situation at hand, you can imagine that some pointers to the datastructure will nevertheless still remain, so that I can kind of have a historical view of what happened with the stack." Just find+replace stack by queue, and you have the requirements for the queue. Bye