Article View: comp.lang.postscript
Article #34Re: avoiding dictfull errors, and a question
From: Nicolas Tamburri
Date: Wed, 28 Oct 1992 14:27
Date: Wed, 28 Oct 1992 14:27
18 lines
1351 bytes
1351 bytes
wolff@inf.fu-berlin.de (Thomas Wolff) writes:
> nick@sw.stratus.com (Nicolas Tamburri) writes:
>
> > { userdict userdict maxlength 100 add dict
> > /userdict exch xdef userdict copy begin
> > } if
>
> You forgot to pop the old currentdict (here userdict) before
> pushing the enlarged one: insert end before begin.
I had originally tried that and the end would cause an invalidaccess
error. I assume this is due to a restriction about popping the original
userdict off the dictionary stack the first time it is run. (I'm running
on a NEC890 SilentWriter.) Since dictionary entries are "shared", and since
the extension should not happen very often, I do not consider the
overhead to be very significant (although it is unfortunate.)
/nt
Technical Details
Message-ID:
<7616@transfer.stratus.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!samsung!transfer!sw.stratus.com!nickReferences:
<7473@transfer.stratus.com> <36C815Q@math.fu-berlin.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!noose.ecn.purdue.edu!samsung!transfer!sw.stratus.com!nick From: nick@sw.stratus.com (Nicolas Tamburri) Newsgroups: comp.lang.postscript Subject: Re: avoiding dictfull errors, and a question Message-ID: <7616@transfer.stratus.com> Date: 28 Oct 92 14:27:12 GMT References: <7473@transfer.stratus.com> <36C815Q@math.fu-berlin.de> Sender: usenet@transfer.stratus.com Organization: Stratus Computer, Inc. Lines: 18