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


Groups > comp.lang.postscript > #1532

How to write ‘object oriented’ code

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject How to write ‘object oriented’ code
Organization Decebal Computing
Date 2013-07-31 09:29 +0200
Message-ID <87iozrb31a.fsf@Aspire.decebal.nl> (permalink)

Show all headers | View raw


I am using postscript to generate quotes with borders. For example at:
    https://www.facebook.com/CecilWesterhof

There are severall functions you need:
- drawing the actual border
- getting the height of the border
- getting the width of the left element
- getting the width of the right element
- getting the width of the center elements

Is there a (best) way that I can work like I am having classes? I just
make an assignment of the type of the border I want to use, and the
calls give the values belonging to that border.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

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


Thread

How to write ‘object oriented’ code Cecil Westerhof <Cecil@decebal.nl> - 2013-07-31 09:29 +0200
  Re: How to write ‘object oriented’ code luser- -droog <mijoryx@yahoo.com> - 2013-07-31 00:56 -0700
    Re: How to write ‘object oriented’ code luser- -droog <mijoryx@yahoo.com> - 2013-07-31 01:25 -0700
      Re: How to write ‘object oriented’ code luser- -droog <mijoryx@yahoo.com> - 2013-07-31 01:28 -0700
      Re: How to write ‘object oriented’ code luser- -droog <mijoryx@yahoo.com> - 2013-08-01 01:58 -0700

csiph-web