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


Groups > comp.lang.postscript > #3461

Re: How do you organize options or global parameters to a ps program?

Newsgroups comp.lang.postscript
Date 2019-10-10 06:36 -0700
References <adeb2970-5cb9-4541-952e-be1a98c723b9@googlegroups.com>
Message-ID <b5efadf2-bf71-45ad-b58c-1cbd6eb9a6b6@googlegroups.com> (permalink)
Subject Re: How do you organize options or global parameters to a ps program?
From jdaw1 <jdawiseman@gmail.com>

Show all headers | View raw


> it is sometimes simple and easy to just keep the options
> in the file, right at the top. 

And in www.jdawiseman.com/placemat.html the first 726 lines are the 450 parameters and settings. 

> One thing I (think I) have used is to collect
> the options in a dictionary, then put all the defaults in
> another dictionary. Then you can use 'dict dict copy' to
> replace the defaults with any definitions in the new dict
> and use the resulting dict.

That’s good — I like. But having all the defaults explicitly at the top helps users, in that they can see what sort of thing could go into each parameter.

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


Thread

How do you organize options or global parameters to a ps program? luser droog <luser.droog@gmail.com> - 2019-09-20 21:00 -0700
  Re: How do you organize options or global parameters to a ps program? jdaw1 <jdawiseman@gmail.com> - 2019-10-10 06:36 -0700

csiph-web