Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1629
| Newsgroups | comp.lang.postscript |
|---|---|
| Date | 2013-09-18 22:35 -0700 |
| References | <15de7a17-f979-4fe5-ac27-7215f68a4df6@googlegroups.com> <m338p1ttgs.fsf@hemphills.net> <abf44f99-98ea-4683-9f5f-fb8b4e6d1b4b@googlegroups.com> |
| Message-ID | <c1b91aae-c38f-49dd-aaa3-b75656eeae2d@googlegroups.com> (permalink) |
| Subject | Re: [] [] eq apparently returns true |
| From | luser- -droog <mijoryx@yahoo.com> |
On Thursday, September 19, 2013 12:28:54 AM UTC-5, luser- -droog wrote: > On Wednesday, September 18, 2013 9:50:59 PM UTC-5, Scott Hemphill wrote: > > > anavi8r@gmail.com writes: > > > Hi all, > > > > > > I am writing a PostScript interpreter and I just ran into the following strange issue: > > > > > > Apparently, a "standard" PostScript interpreter such as Photoshop, when running into the code > > > > > > [] [] eq > > > > > > returns true (which is unexpected), while the code > > > [snip] > > > Why would two empty arrays considered equal? Shouldn't they still occupy different areas of the VM? > > > > > > > > Because empty arrays don't use any VM. The pointer into the VM is null. > > > > > Dammit! Mine prints 'false'. :( fixed. zero-length arrays have a null "pointer". $ ./itp ^test itp.c loading init.ps... loading err.ps... $error Xpost3 version 0.0 PS>[] [] eq = true PS><operator 1 exch 0x407c71>bye!
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[] [] eq apparently returns true anavi8r@gmail.com - 2013-09-18 10:16 -0700
Re: [] [] eq apparently returns true Scott Hemphill <hemphill@hemphills.net> - 2013-09-18 22:50 -0400
Re: [] [] eq apparently returns true luser- -droog <mijoryx@yahoo.com> - 2013-09-18 22:28 -0700
Re: [] [] eq apparently returns true luser- -droog <mijoryx@yahoo.com> - 2013-09-18 22:35 -0700
Re: [] [] eq apparently returns true Mark Carroll <mtbc@bcs.org> - 2013-09-19 08:28 +0100
Re: [] [] eq apparently returns true luser- -droog <mijoryx@yahoo.com> - 2013-09-19 02:06 -0700
Re: [] [] eq apparently returns true luser- -droog <mijoryx@yahoo.com> - 2013-09-19 02:25 -0700
Re: [] [] eq apparently returns true luser- -droog <mijoryx@yahoo.com> - 2013-09-19 02:38 -0700
Re: [] [] eq apparently returns true anavi8r@gmail.com - 2013-09-21 11:28 -0700
Re: [] [] eq apparently returns true luser- -droog <mijoryx@yahoo.com> - 2013-09-21 12:30 -0700
Re: [] [] eq apparently returns true Scott Hemphill <hemphill@hemphills.net> - 2013-09-23 23:24 -0400
csiph-web