Talk:Special variables: Difference between revisions

m
→‎REXX Special variable RETURN: added comments about what the documents said or didn't say.
m (→‎REXX Special variable RETURN: added comments about what the documents said or didn't say.)
 
Line 31:
<br> Some other (older) implementations set it also after function invocations, thereby violating the standard (which was, I think, only created at a later point in time).
--[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 10:38, 20 December 2014 (UTC)
 
: The 2nd statement (... and not after function invocations.) isn't written as such --- there is no ''not'' or ''except'' used in the IBM pubs regarding this subject. &nbsp; Of what I read of the current IBM publications, at best, it is possibly inferred and the wording ''could be'' interpreted that way. &nbsp; If the current IBM publications (VM REXX reference, and the TSO/E version) had stated it as you said, there wouldn't be any disagreement. &nbsp; The Regina REXX publication is the only place that mentions explicitly that if subroutine was invoked via the CALL verb, that the RESULT special variable was set/defined from the expression of the RETURN statement, or DROPped if there wasn't an expression. &nbsp; I didn't read anywhere in the current IBM publications that RESULT is set/define and NOT for function invocations. &nbsp; If it did, there wouldn't be a discussion regarding this matter. &nbsp; That other authors of other REXXes (not mentioned here in this talk section) implemented it differently speaks to the manner of interpreting what the publications state (or more probably, what they didn't state). &nbsp; That the "standard" was written after some of the older REXXes where written and implemented shouldn't make the older REXX interpreters incorrect (in my opinion). &nbsp; It is important to note that various REXX interpreters have different ... er, results regarding the issue of setting/defining the RESULT special variable (or not setting it). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:46, 20 December 2014 (UTC)