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


Groups > comp.lang.postscript > #2934

Re: How can we evangelize PostScript?

Newsgroups comp.lang.postscript
Date 2016-11-09 18:34 -0800
References (1 earlier) <5b7781ce-c685-4a4b-bd22-4b78a0adccfe@googlegroups.com> <bf67649d-e33f-4b90-863d-e4f42e08be47@googlegroups.com> <522a0ac9-1197-4967-9185-320d6ffa2e7a@googlegroups.com> <ca8035f5-a699-4333-9b8b-346d2297efc5@googlegroups.com> <57b020ed-0a00-4099-a576-d86a5c552163@googlegroups.com>
Message-ID <7b98b46b-a0c2-49ae-8f7b-3a822b8bd53b@googlegroups.com> (permalink)
Subject Re: How can we evangelize PostScript?
From luser droog <luser.droog@gmail.com>

Show all headers | View raw


On Saturday, November 5, 2016 at 8:21:40 PM UTC-5, Lawrence D’Oliveiro wrote:
> On Thursday, November 3, 2016 at 4:22:29 AM UTC+13, luser droog wrote:
> > What does/would stackbegin and stackend do?
> 
>     «n» stackbegin
> 
> moves the top «n» operands from the current operand stack to a new stack, and makes that new stack the current operand stack.
> 
>     «n» stackend
> 
> ensures that the current operand stack contains exactly «n» items, no more, no less; it moves them to the top of the previous operand stack, gets rid of the current stack, and makes the previous stack the current stack.
> 
> Example:
> 
> 
>     /try
>       {
>         2 stackbegin
>         add
>         1 stackend
>       }
>     ddef
> 
>     2 3 try =
> 
> “try” just adds two numbers together. But it ensures that it takes exactly 2 operands and returns 1 result, no more, no less.
> 
> (I also replaced “def” with “ddef” and “ldef”, for explicitly specifying dynamic and lexical binding respectively.)

Very cool. Thanks. IIRC we almost (would) have that with DPS `fork` 
and `join` with the additional quirk of executing in a thread.
But this could be a very useful tool for implanting that behavior
atop.

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


Thread

How can we evangelize PostScript? luser- -droog <mijoryx@yahoo.com> - 2015-02-11 22:04 -0800
  Re: How can we evangelize PostScript? tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2015-02-12 03:09 -0500
    Re: How can we evangelize PostScript? zupftom@googlemail.com - 2015-02-26 03:58 -0800
      Re: How can we evangelize PostScript? jdaw1 <jdawiseman@gmail.com> - 2015-02-26 14:43 -0800
        Re: How can we evangelize PostScript? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-01 16:43 -0700
  Re: How can we evangelize PostScript? jdaw1 <jdawiseman@gmail.com> - 2015-02-12 01:36 -0800
  Re: How can we evangelize PostScript? James <jjpuzzles@wowway.com> - 2015-02-12 04:29 -0800
  Re: How can we evangelize PostScript? Bogus@Embarq.com (Steve) - 2015-02-12 13:50 +0000
  Re: How can we evangelize PostScript? Mark Carroll <mtbc@bcs.org> - 2015-02-15 15:27 +0000
    Re: How can we evangelize PostScript? tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2015-02-15 19:20 -0500
    Re: How can we evangelize PostScript? jdaw1 <jdawiseman@gmail.com> - 2015-02-16 01:54 -0800
    Re: How can we evangelize PostScript? luser droog <luser.droog@gmail.com> - 2016-07-17 08:31 -0700
  Re: How can we evangelize PostScript? luser- -droog <mijoryx@yahoo.com> - 2015-02-28 00:52 -0800
  Re: How can we evangelize PostScript? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-01 17:02 -0700
    Re: How can we evangelize PostScript? luser- -droog <mijoryx@yahoo.com> - 2016-06-09 22:59 -0700
      Re: How can we evangelize PostScript? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-09 23:38 -0700
        Re: How can we evangelize PostScript? Peter Billam <peter@www.pjb.com.au> - 2016-06-12 04:52 +0000
          Re: How can we evangelize PostScript? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-12 00:49 -0700
            Re: How can we evangelize PostScript? luser- -droog <mijoryx@yahoo.com> - 2016-06-12 01:38 -0700
              Re: How can we evangelize PostScript? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-12 02:31 -0700
        Re: How can we evangelize PostScript? luser droog <luser.droog@gmail.com> - 2016-11-02 08:22 -0700
          Re: How can we evangelize PostScript? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-11-05 18:21 -0700
            Re: How can we evangelize PostScript? luser droog <luser.droog@gmail.com> - 2016-11-09 18:34 -0800
  Re: How can we evangelize PostScript? Alan <alan.isaac@gmail.com> - 2016-07-10 15:48 -0700

csiph-web