Talk:Variable declaration reset: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎i>1: avoiding lower-bound differences)
Line 2: Line 2:
(minor point) I think I may have sold you all a bit of a dummy with Phix's i>1, which is correct because of it's 1-based indexes, and the JavaScript typo of i>1 which should have been/is now i>0, but luckily it should make no difference. I also wonder if algol68 should be i>LWB s ?? --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 02:07, 16 April 2022 (UTC)
(minor point) I think I may have sold you all a bit of a dummy with Phix's i>1, which is correct because of it's 1-based indexes, and the JavaScript typo of i>1 which should have been/is now i>0, but luckily it should make no difference. I also wonder if algol68 should be i>LWB s ?? --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 02:07, 16 April 2022 (UTC)
:God point, Pete - I've adjusted the code and added a bit more explanation. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 13:15, 16 April 2022 (UTC)
:God point, Pete - I've adjusted the code and added a bit more explanation. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 13:15, 16 April 2022 (UTC)

:Maybe a bit late now but you could make it lower-bound independent if it was curr>1 instead of i>1 - the effect would be the same. --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 11:13, 17 April 2022 (UTC)

Revision as of 11:13, 17 April 2022

i>1

(minor point) I think I may have sold you all a bit of a dummy with Phix's i>1, which is correct because of it's 1-based indexes, and the JavaScript typo of i>1 which should have been/is now i>0, but luckily it should make no difference. I also wonder if algol68 should be i>LWB s ?? --Pete Lomax (talk) 02:07, 16 April 2022 (UTC)

God point, Pete - I've adjusted the code and added a bit more explanation. --Tigerofdarkness (talk) 13:15, 16 April 2022 (UTC)
Maybe a bit late now but you could make it lower-bound independent if it was curr>1 instead of i>1 - the effect would be the same. --Tigerofdarkness (talk) 11:13, 17 April 2022 (UTC)