User talk:Jjuanhdez: Difference between revisions

m (→‎The Name Game: changed wording.)
 
(2 intermediate revisions by one other user not shown)
Line 13:
 
In your computer programming language entry for   '''BASIC246'''   the Rosetta Code task   [https://rosettacode.org/wiki/The_Name_Game The Name Game],   you have all the vowels capitalized   ''except''   for the lowercase vowel   '''e'''.       Is that a typo?.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 20:05, 11 December 2020 (UTC)
 
== Combinations ==
 
Hello
 
Thank you for your very clean BASIC implementation, which was fun to translate into RPL.
Just a question: don't you think it could better work with an ELSE instruction?
 
subroutine iterate (curr$, start, stp, depth)
for i = start to stp
if depth = 0 then print curr$ + " " + string(i)
<span style="color:red">else</span> call iterate (curr$ + " " + string(i), i+1, stp, depth-1)
next i
end subroutine
[[User:Aerobar|Aerobar]] 23:42, 7 June 2023 (CET)
 
 
Hello [[User:Aerobar|Aerobar]]!
 
Yes it is somewhat faster to use the ELSE statement. Although not much else (in my tests)
 
Thank you anyway.
2,136

edits