🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1653

Re: seeing dictionary names

#1653
From: Woody Baker Eagle Signal
Date: Fri, 16 Mar 1990 19:49
21 lines
1684 bytes
Recently a program that I have has started showing some odd behavior.
After printing many dozens of pages, it reports  dictfull.  
we modified the erhandlr to find out the length of the dictionary on top
of the stack.  The maximum length turns out to be 180.  The programs
dictionaries are 196 and 80.  Exactly how can you extract the name of
the dictinary from the  dstackarray, or for that matter, any dictionary
that is on the dictionary stack.  Typically, you get --dictionary--.
So far, the only 2 ways that I have found to identify the dictionary
is to find the maxlength and current length, or extract say the first
2 or 3 entries with the get  statement or whatever.  Looking at them
can give you a clue as to which dictionary it is, but is there a way
to link the dictionary with the one on the stack, such that you can
get the name?  Dumping a procedure, that invokes a dictionary also shows
--dictionary--  rather than anything that is meaningful.  I know that I
could arrange to embed the name of the dictionary within the dictionary
by creating a text representation of the name as the 0th element in the
dictionary, but is there a clean, known way to find it?

Cheers
Woody
Technical Details
Message-ID: <1085@chinacat.Lonestar.ORG>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!chinacat!woody
References: <7986@sdcsvax.UCSD.Edu> <3295@hcx1.SSD.CSD.HARRIS.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!chinacat!woody
From: woody@chinacat.Lonestar.ORG (Woody Baker @ Eagle Signal)
Newsgroups: comp.lang.postscript
Subject: Re: seeing dictionary names
Summary: dict names
Message-ID: <1085@chinacat.Lonestar.ORG>
Date: 16 Mar 90 19:49:18 GMT
References: <7986@sdcsvax.UCSD.Edu> <3295@hcx1.SSD.CSD.HARRIS.COM>
Distribution: na
Organization: a guest of Unicom Systems Development, Austin
Lines: 21