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