Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #96

Re: magic dictionary?

From luser- -droog <mijoryx@yahoo.com>
Newsgroups comp.lang.postscript
Subject Re: magic dictionary?
Date 2011-03-30 14:44 -0700
Organization http://groups.google.com
Message-ID <2b56f695-e603-496b-9368-c117fc4e0023@f18g2000yqd.googlegroups.com> (permalink)
References <aee67c8a-f090-4ffd-b78c-510a7f193daf@k22g2000yqh.googlegroups.com> <3073984e-9d82-4b10-bf67-ed697f5b4138@w7g2000pre.googlegroups.com>

Show all headers | View raw


Scott Prouty wrote:
>
> I suppose this is something like the page device dictionary used for
> "setpagedevice".  Of course the dictioanry passed to "setpagedevice"
> is merged with the device dictionary and then activated at the
> "setpagedevice" call.  So, for example, duplexing can't be activated
> like this:
>
> currentpagedevice /Duplex true put
>
> But of course it can be like this:
>
> <</Duplex true>> setpagedevice
>
> It sounds like NeWS could do the former...

Yes. If currentpagedevice is a magic dictionary, the setpagedevice
could be simply:
/setpagedevice {
  currentpagedevice begin
    {def} forall
  end
} def

But I'm probably getting way ahead of myself worrying about how to
do this. Garbage Collection, expandable dictionaries, deleting keys:
all of these probably need to happen first.

But it is the wild speculation that's the fun part.

Back to comp.lang.postscript | Previous | NextPrevious in thread | Find similar


Thread

Re: magic dictionary? Scott Prouty <scott.prouty@solimarsystems.com> - 2011-03-29 12:07 -0700
  Re: magic dictionary? luser- -droog <mijoryx@yahoo.com> - 2011-03-30 14:44 -0700

csiph-web