Talk:Strip a set of characters from a string: Difference between revisions

m
→‎REXX version 3: corrected a HTML tag misspelling, corrected big to BIF.
(→‎Task clarification: added a sentence to existing paragraph. -- ~~~~)
m (→‎REXX version 3: corrected a HTML tag misspelling, corrected big to BIF.)
 
Line 10:
::: ''I have noted the restriction. What's the problem with CR and LF and tab ???'' --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 22:33, 7 June 2013 (UTC)
 
:::: You've noted '''a''' restriction (which isn't checked for; if the any of the restrictions exist, the program produces the wrong result --- if this version is inferior to a previous version, it should be corrected or removed, in my opinion).   The problem with other whitespace is that the '''space''' bifBIF removes them (because they are considered blanks).   Change the period (within the string) to a period followed by six tab characters and note the result(s). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:01, 7 June 2013 (UTC)
 
:::::: Which REXX would do that? Mine (ooRexx) does not! s='a'||'05'x||b;t=space(s,0);say t c2x(t) And there should be room for simpler, albeit restricted, solutions. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 05:49, 8 June 2013 (UTC)
Line 16:
::::::: It seems all the "IBM" REXXes (CMS and TSO REXX, ooRexx, and the REXX compiler) use the definition of ''blanks''' to just mean ''spaces''. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 14:45, 10 June 2013 (UTC)
 
::::::: Regina REXX's PDF documentation says it uses blanks (whitespace) for most BIFs, but doesn't (it just uses spaces).   I've considered submitting a bug (or multiple bugs), but I don't believe that's the correct havior as it may break older programs --- this was a topic of heated debate a decade earlier or so); ROO and R4 do treat blanks as whitespace, at least more consistently   (I haven't test a multitude of others).   Note that (in some REXXes) whitespace is/are blanks, and blanks are spaces and several other characters such as tabs, VT, HT, LF, CR, FF, etc.   The list of which characters are considered blanks is rather vague and not comprehensive.   Older REXX interpreters only use the space character for a blank.   This most likely includes CMS REXX and TSO REXX, oRexx, the CMS and TSO REXX compiler, ooRexx, PC/REXX, and Personal REXX.
 
::::::::: I'd say the language is rather strict about the SPACE builtin-function. White space in Rexx source code is a different matter. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 09:35, 8 June 2013 (UTC). Afterthought: How does Strip behave in REXXes that I do not have? You mention blank in your version 1 of this task's solutions.