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

  1. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!Sirius.dfn.de!zam103!ibt013!kiehl
  2. From: kiehl@ibt013.ibt.kfa-juelich.de (Horst Kiehl)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Reading inline "code" as input?
  5. Keywords: inline, sourceline
  6. Message-ID: <276@zam103.zam.kfa-juelich.de>
  7. Date: 9 Sep 92 11:27:24 GMT
  8. References: <1992Sep8.163642.16833@midway.uchicago.edu> <275@zam103.zam.kfa-juelich.de>
  9. Sender: news@zam103.zam.kfa-juelich.de
  10. Reply-To: kiehl@ibt013.ibt.kfa-juelich.de (Horst Kiehl)
  11. Organization: Forschungszentrum Juelich GmbH (KFA), Germany
  12. Lines: 41
  13. Nntp-Posting-Host: ibt013
  14.  
  15. In article <275@zam103.zam.kfa-juelich.de>, I write:
  16.  
  17. >So you could insert the XXEncoded stuff in a comment in the middle
  18. >of the program, like:
  19. >
  20. >   /* XX:
  21. >   SDFJKGSASD
  22. >   ASDFJASDLD
  23. >   ASDFLASDFL
  24. >   ASDFL
  25. >   */
  26. >
  27. >and locate the line containing ' XX:' by a loop using SOURCELINE.
  28.  
  29. If the XXEncoded stuff can include REXX comment delimiters
  30. ('/*' and '*/'), single or double quotes, you probably have to use a
  31. different method to include it in the REXX program. Apparently the OS/2
  32. REXX interpreter scans the whole program before interpreting it,
  33. detecting any unmatched "/*" or quote. (I don't know if that is demanded
  34. by the language definition.) (Aside, an unmatched "*/", outside
  35. comments, is allowed.) That implies that movine the XX-code (with or
  36. without comment delimiters) to the very end of the program woudn't help
  37. either.
  38. <...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....>
  39.  
  40. You might include the XX-code as a literal string (to be used in an
  41. assignment, for example), but the length of literal strings is subject
  42. to an implementation limitation of 250 characters. (Other interpreters
  43. may have different implementation limits.) (Of course, values (as of
  44. variables) may be of any length, or rather, as long as the machine can
  45. handle -- I just expanded my swapfile from 4Mbyte to 34Mbyte by using
  46. COPIES('*', 32*1024*1024) in a test program.)
  47.  
  48. So apparently you have to ship the XX-code in a separate file (as you
  49. currently do, I suppose).
  50.  
  51. If anyone else can prove me wrong, please do!
  52.  
  53. All the best,
  54.  
  55. Horst
  56.