🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1326

Blue book #19 confustion

#1326
From: Mark Martino
Date: Wed, 15 Nov 1989 16:47
17 lines
1274 bytes
I was studying example #19 in the blue book today and I came across a
line that I don't understand.  The program runs so it must make sense to
the interpreter, but it doesn't make sense to me.

When creating a new font dictionary, this example uses this line:

{ exch newfont 3 1 roll put }

"newfont" appears to be a new empty dictionary. I don't understand how
newfont is being accessed and used here.  If one enters a string without
the "/", the interpreter trys to find it in the dictionaries.  Shouldn't this
return some kind of "can't find" error?  It seems to do this if you set
this up and try to run it by itself.

I really need to understand this so I can create some new fonts for
myself.  Would someone please explain in more detail what is going on
here?  Thanks for the reality.
Technical Details
Message-ID: <932@mtk.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!rice!uw-beaver!sumax!amc-gw!thebes!mtk!marmar

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!rice!uw-beaver!sumax!amc-gw!thebes!mtk!marmar
From: marmar@mtk.UUCP (Mark Martino)
Newsgroups: comp.lang.postscript
Subject: Blue book #19 confustion
Summary: I guess it works but how?
Message-ID: <932@mtk.UUCP>
Date: 15 Nov 89 16:47:10 GMT
Reply-To: marmar@mtk.UUCP (Mark Martino)
Distribution: usa
Organization: Mannesmann Tally, Kent, WA 98032
Lines: 17