Arithmetic numbers: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: (I meant call not loop))
Line 1,679: Line 1,679:
<!--</syntaxhighlight>-->
<!--</syntaxhighlight>-->
<small>
<small>
Aside: You ''could'' inline the get_arithmetic() call inside the loop, however
Aside: You ''could'' inline the get_arithmetic() call inside the printf() call, however
the formal language specification does not actually guarantee that the value
the formal language specification does not actually guarantee that the value of composite
of composite won't be output as it was ''before'' the function call is made.
won't be output as it was ''before'' such a function call is made, or in other words,
whether parameters are constructed left-to-right or right-to-left is simply unspecified.
You certainly would ''not'' expect get_arithmetic(n,composite) to do anything other
You certainly would ''not'' expect get_arithmetic(n,composite) to do anything other
than pass the ''prior'' value into the function, so for your own sanity you should
than pass the ''prior'' value into the function, so for your own sanity you should