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


Groups > comp.lang.postscript > #1532

How to write ‘object oriented’ code

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!feed.xsnews.nl!border-1.ams.xsnews.nl!post-feeder-01.xsnews.nl!frontend-F10-19.ams.news.kpn.nl
From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject How to write ‘object oriented’ code
Organization Decebal Computing
X-Face "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E
X-Homepage http://www.decebal.nl/
Date Wed, 31 Jul 2013 09:29:37 +0200
Message-ID <87iozrb31a.fsf@Aspire.decebal.nl> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock sha1:7odc+znJp+QFd2kc9cxBAokrUPY=
MIME-Version 1.0
Content-Type text/plain
Lines 18
NNTP-Posting-Host 77.171.42.144
X-Trace 1375257022 news.kpn.nl 22440 77.171.42.144@kpn/77.171.42.144:42132
Xref csiph.com comp.lang.postscript:1532

Show key headers only | 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