home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / rexx / 852 < prev    next >
Encoding:
Text File  |  1992-08-31  |  10.9 KB  |  269 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!SERVER.UWINDSOR.CA!OPHOF
  3. X-Mailer: ELM [version 2.3 PL11]
  4. Message-ID: <9208310858.AA28086@SERVER.uwindsor.ca>
  5. Newsgroups: comp.lang.rexx
  6. Date:         Mon, 31 Aug 1992 04:58:09 EDT
  7. Sender:       REXX Programming discussion list <REXXLIST@UGA.BITNET>
  8. From:         Scott Ophof <ophof@SERVER.UWINDSOR.CA>
  9. Subject:      Re: Blanks, REXX, and portability...
  10. Comments: To: REXXLIST@uga.cc.uga.edu
  11. In-Reply-To:  <9208280537.AA25522@SERVER.uwindsor.ca>; from "Dave Gomberg" at
  12.               Aug 27, 92 10:32 pm
  13. Lines: 254
  14.  
  15. On Thu, 27 Aug 1992 22:32:04 PDT Dave Gomberg said:
  16. >...
  17. >A standard mainly tells implementers what to implement, and to a lesser
  18. >extent, users what kind of code to write.   If users don't know certain
  19.                             ^^^^
  20. A comment (partly relevant to the subject, but more to *REXX* and
  21. programming in general):
  22. REXX is for me the first *major* step in the direction of "being
  23. able to program withOUT having to translate from a human language to
  24. some form of non-READable 'language'".  I hope to see this trend
  25. continue in the future!
  26.  
  27. Maybe someday someone will combine a REXX subroutine written using
  28. Chinese idiograms where we use IF/THAN/ELSE with another using
  29. Hebrew characters for the keywords and send the result to Eric who
  30. sees the result in plain English (because his computer does an
  31. automatic translation from Hebrew & Chinese), and incorporates it
  32. all into a new function for REXX, which Anders builds into Regina
  33. (of course reading it in Norwegian) and uploads to those little
  34. green men at the Univ of Marsopolis...   Portability unimportant???
  35.  
  36.  
  37. On Fri, 28 Aug 1992 18:22:23 GMT Eric Giguere said:
  38. >Life is full of compromises.  So are standards.  I, for one, am disappointed
  39. >in seeing an innocent question about what "blanks" are degenerate into an
  40. >opinionated debate about the proper (or improper) design and mindsets of
  41. >certain operating systems.
  42.  
  43. Bringing to the fore those design aspects and mindsets is necessary
  44. to get an overview of all relevant aspects of the problem, so we can
  45. work towards a solution which not only encompasses those aspects,
  46. but also creates enough room in whatever solution is generated to
  47. hopefully allow for many probably unexpected future problems.
  48.  
  49. >That's why I worry sometimes that CMS is perhaps having too much of an
  50. >influence on the way REXX is being standardized.  I hope that's not the case.
  51. >...
  52. >to succeed.  But it would be sad if following a standard leads to failure.
  53.  
  54. I *hate* UN*X, manage to tolerate MS-DOS, and *love* CMS.
  55. *REGARDLESS* of these feelings, I think REXX *can* grow to be a
  56. "universally" useable and useful programming laguage, irrespective
  57. of human language of the programmer and opsys.
  58. Now you have my reason for bringing up the blank/REXX/portability
  59. question in the first place.
  60.  
  61.  
  62. On Fri, 28 Aug 1992 16:24:57 GMT Jon Schmidt said:
  63. >...
  64. >Here's my little program, written to explore the commercial UNIX
  65. >REXX interpreter's definition and handling of blanks:
  66. ...[program deleted]...
  67.  
  68. Here's what it does on my PC:
  69.        Test  Unix  PC
  70.        --------------
  71.         1    1     0
  72.         2    0     0
  73.         3    1     0
  74.         4    0     0
  75.         5    1     1
  76.         6    1     1
  77.         7    1     1
  78.         8    2     2
  79.         9    41    1
  80.  
  81. Somehow, I don't trust what the PC did...  Anyone care to append a
  82. column for other systems?
  83.  
  84.  
  85. On Fri, 28 Aug 1992 09:41:50 PDT Dave Gomberg said:
  86. >There are really four questions:
  87. >1. How do we seperate words?
  88. >2. How do we save disk space?
  89. >3. How do we save typist hassle?
  90. >4. How do we make our printed output look nice?
  91. >I claim we ought, on this list, to address only 1.  The others belong on
  92. >the operating system, disk management, word processing, and desktop
  93. >publishing lists.
  94.  
  95. REXX might well be(come) useful outside of point, so my question is
  96. and remains:
  97. What needs to be done to solve the whitespace/blank/space problem
  98. within and between systems where it relates to REXX?
  99.  
  100.  
  101. On Thu, 27 Aug 1992 15:09:14 GMT Jerry Campbell said:
  102. >I think its a BIG mistake for an particular interpreter implementation or
  103. >especially the ANSI committee to make any assumptions about the data a
  104. >Rexx program may need to deal with.
  105.  
  106. First a disclaimer:  The following is *not* meant as a negative
  107. reflection re the ANSI-REXX committee!
  108. We can't help but make such assumptions; there are never enough
  109. far-sighted people in a position with enough authority to "ram"
  110. a decision through so that short-term thinkers don't get the chance
  111. to screw up excellent long-term concepts.
  112.  
  113. >...                                             If you step back from
  114. >this issue a bit and consider the possible uses of Rexx as an interprocess,
  115. >intersystem scripting language I think its required that we not insist
  116. >on "helping" the Rexx programmer port his programs with stuff like builtin
  117. >*automatic* tab to space conversion and such.
  118.  
  119. >                    Now, expand the concept to other systems/hosts instead
  120. >of local processes....
  121.  
  122. Yes, *please*!  :-)
  123.  
  124. I know someone who *insists* that a SPACE be used to separate the
  125. two words of her last name (she's not a unique case)...
  126. Any idea how many programs are Broken As Designed in this respect?
  127. Here's where the "unbreakable space" comes into play.
  128.  
  129.  
  130. On Sat, 29 Aug 1992 23:36:31 GMT Eric Thomas said:
  131. >In article <ANDERS.92Aug29194248@lise3.lise.unit.no>, anders@lise3.lise.unit.no
  132. >(Anders Christensen) writes:
  133. >>>                       Parse var data a b . ' A('c')' d
  134. >> You use a Space character in the pattern to denote a whitespace.
  135. >...                       If "search" functions interpret blanks as "any white
  136. >space", how can I make a search on a binary key which happens to contain a $20?
  137.  
  138. No way you can then, with REXX the way it is...  :-(
  139. I was rather shocked to discover that in certain envirs a literal is
  140. not always a literal, ie. that parts of it *can* be interpreted.
  141. That the "certain envir" is Unix is *TOTALLY* IRRELEVANT!!!
  142. In REXX single & double quotes have the same syntactical meaning; to
  143. quote a literal string, and *nothing* inside those quotes is allowed
  144. to be interpreted.
  145.  
  146. Question:
  147. How much breakage would occur if the double quotes retained that
  148. meaning, but the single quotes were to allow interpretation to some
  149. extent?  In other words:
  150.       Parse var data a b . " A("
  151. means "ASCII '20'X followed by 'A('".
  152. But:
  153.       Parse var data a b . ' A('
  154. means "one whitespace followed by 'A('".
  155.  
  156.  
  157. On Sat, 29 Aug 1992 17:02:32 GMT Eric Thomas said:
  158. >Frankly, I am a bit surprised at the sheer amount of bytes of arguments,
  159. >proposals and counter-proposals that this fairly simple "blanks and whitespace"
  160. >problem has generated.
  161.  
  162. So am I, but then in the sense that there are *more* aspects to it
  163. all than I had thought possible...  I'm glad they were brought up.
  164.  
  165. >                       Personally I can't see what is so complicated about it
  166. >that requires proposals of more than 200 lines which touch about each and every
  167. >function in the language, and what is so controversial about making it easier
  168. >for unixers to process tabs et al the way they are used to - without breaking
  169. >anything, of course.
  170.  
  171. I see a problem in that portability seems to rate less consideration
  172. than I feel it should in this day and age.
  173.  
  174. >It is a fact that most non-EBCDIC systems use tabs in source code, and won't
  175. >change their minds just because of REXX. So REXX interpreters running on ASCII
  176. >systems should accept tabs as valid white space delimiters in source code.
  177.  
  178. What happens when John copies this source program to a system that
  179. does NOT recognize tab as whitespace, and gives it to Jack to test,
  180. without telling him it comes from an ASCII system?  Syntax error?
  181. Would adding an error message stating use of illegal-whitespace-for-
  182. that-system be a viable solution?
  183.  
  184. >A tab in a quoted string is a tab, not a blank, just like in C and other unix
  185. >languages.                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  186.  ^^^^^^^^^
  187. Are you *100%* *SURE* of this?
  188.  
  189.  
  190. >My turn to be flamed now :-)
  191.  
  192. Well..  I'll oblige you if you *really* want it.  But let's do it on
  193. alt.flame with a discussion on how to induce the Internet and BITnet
  194. worlds to work *together*...  (*EVIL* grin) ;-)
  195.  
  196.  
  197. On Sat, 29 Aug 1992 17:06:23 GMT Eric Thomas said:
  198. >I apologize for the previous post where I quoted everything and said nothing -
  199. >I must have hit the wrong key. Here is what I meant to say :-)
  200.  
  201. Was it an "s" instead of "d"?...  >;->>>
  202. Couldn't have been PF4 or PF6...  (hehehe)
  203.  
  204.  
  205. >In article <ANDERS.92Aug29050537@lise3.lise.unit.no>, anders@lise3.lise.unit.no
  206. >(Anders Christensen) writes:
  207. >> Eric Thomas <eric@sejnet.sunet.se> wrote:
  208. ...
  209. >No, and in my opinion this portability concern is what keeps you guys off track
  210. >all the time. Portability between different systems is totally irrelevant, the
  211. >only thing that matters is portability between different REXX interpreters on
  212. >the same type of system.
  213.  
  214. I claim that with a nice set of functions translating the relevant
  215. system commands to a standardised REXX I/O, portability *is* *very*
  216. definitely relevant.  An external function package, of course.
  217. And it's high time this matter is addressed, at least more seriously
  218. than up to now...
  219.  
  220. >>    Since EBCDIC
  221. >>    don't use Tabs, the Tabs in ASCII are translated into EBCDIC
  222. >>    Spaces.
  223. >By the way, ASCII tabs are translated to EBDIC "program tab". XEDIT does
  224. >support tabs, but they are a software concept (controlled by a SET TABS editor
  225. >command, rather than something you define on the setup screen of your
  226. >terminal).
  227.  
  228. My apologies for not realizing sooner that we had a misunderstanding
  229. here, Anders.  It was an automatic assumption on my part that you
  230. knew all about EBCDIC tabs.  Sorry.
  231.  
  232.  
  233. >> Regexps are very powerful, and definitively more powerful than the
  234. >> ...
  235. >...                                         Regular expressions are not
  236. >precisely intuitive for this type of people :-)
  237.  
  238. Yes and yes.  Anyone interested in writing an RE(string,rexexp,...)
  239. function for the not-casual user of REXX (thus effectively replacing
  240. most of the built-in functions...)?
  241.  
  242.  
  243. On Sat, 29 Aug 1992 07:09:37 PDT Dave Gomberg said:
  244. >I hope you don't feel excessively flamed by this, and it is not my
  245. >intent to dispute your right to your opinions, but I was trying to
  246. >figure out WHY I reacted so negatively to your postings.  ...
  247.  
  248. You wanted to send this item privately, right?  :-)
  249.  
  250.  
  251. A (rather selective) summary up to now:
  252.  - The number of whitespace chars in char-sets *will* increase.
  253.  - EXPAND(.,.) would solve a lot when REXX is concerned with data.
  254.    It won't solve anything when source files are copied to a more
  255.    restrictive system (unless those interpreters are updated)...
  256.    How about it, IBM, Quercus (Commodore?)?
  257.  - A literal is a literal is a literal.  Or is it?...  Can there
  258.    be an extension/enhancement to allow a limited "maybe"?
  259.  - Let REXX be "open-minded" on reading data, and predictable in
  260.    output.
  261.  - Not much interest in overall portability.  :-(
  262.  
  263.  
  264. Sorry for the length.  ;-)   (but there's a lot of whitespace!)
  265.  
  266.  
  267. Regards.
  268. $$/
  269.