home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / rexx / 1012 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  2.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!umn.edu!noc.msc.net!uc.msc.edu!apctrc!wsc!mozart!zjlc12
  2. From: zjlc12@hou.amoco.com (Jerry Campbell)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re:      Re: Blanks, REXX, and portability..
  5. Message-ID: <1992Sep14.135840.22845@hou.amoco.com>
  6. Date: 14 Sep 92 13:58:40 GMT
  7. References: <1992Sep13.012801.1@sejnet.sunet.se>
  8. Sender: news@hou.amoco.com
  9. Reply-To: zjlc12@hou.amoco.com
  10. Organization: Amoco
  11. Lines: 44
  12.  
  13. In article 1@sejnet.sunet.se, eric@sejnet.sunet.se (Eric Thomas) writes:
  14. >In article <1992Sep11.190834.16887@hou.amoco.com>, zjlc12@hou.amoco.com (Jerry Campbell) writes:
  15. >>     3 - each word oriented, builtin function will have an extra parameter that
  16. >>         can be used to override the implementation default.  
  17. >
  18. >Many of these functions already have a bunch of optional parameters. We're
  19. >talking about ending up with things like FUNCTION(A,B,,,'20090D0A'x) with each
  20. >function having a different amount of commas, not to mention the hassle of
  21. >typing the list of delimiters every time.
  22. >
  23.  
  24. I agree that more parameters are a pain.  But I think that this capability would
  25. be very useful for lots of things, not just handling what Uni* call whitespace
  26. and VM don't.  This would be an optional parameter, you'd get the default 
  27. otherwise, which probably would be ok as long as you agreed with the implementor's
  28. idea of what are good delimiters.  And you could change the default characters
  29. with a ONE TIME call to,  Options blah delimiters,  OR with a bif, as was 
  30. suggested by Dave Gomberg,  setdelimit(...).
  31.  
  32. I think the whole problem reduces to,  either define some kind of program
  33. control for this,  or hang it on the implementor's shoulders and hope you like
  34. what he/she decides (there's no way you can standardize a set of whitespace 
  35. characters). 
  36.  
  37. >>     4 - logical comparisons will use the implementation default delimiters to
  38. >>         fudge the ends of strings.  Unless the strict comparator operators are 
  39. >>         used.  
  40. >
  41. >Which gives you an incomplete/inconsistent tools - for some things you can
  42. >define your delimiters, for others you can. Not very convenient I'm afraid.
  43. >
  44. >  Eric
  45.  
  46. You CAN define them for everything (did I miss a spot?).  You can set "global"
  47. delimiters.  Or override them in builtins.  Not very elegant, I agree.  But
  48. I think it would be a good thing to think of delimiters as just another
  49. string handling concern, along the level of the pad char that some functions use.
  50. I don't think we should make this harder than it is. The thing that's futsy, fudgy, icky, is the what constitutes a legal leading/trailing don't care char.
  51.  
  52.  
  53. ---
  54. Jerry Campbell   reply to: zjlc12@hou.amoco.com 
  55. Amoco Corp. ISD  SSS/Graphics
  56. Houston, Tx.     713/556-7036
  57.