News:

  • September 24, 2026, 03:39:27 AM

Login with username, password and session length

Author Topic: FOR-NEXT with negative increment  (Read 7483 times)

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
FOR-NEXT with negative increment
« on: May 21, 2019, 02:18:50 PM »
I could have sworn I've done a FOR-NEXT with a negative increment value, but DMD won't allow it.  Am I having a senior moment?  Even if so, is it feasible to make negative increments happen?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: FOR-NEXT with negative increment
« Reply #1 on: May 21, 2019, 08:27:51 PM »
Host probably wanted to keep things positive, none of this negativity.
« Last Edit: May 24, 2019, 10:39:03 AM by ATU »

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: FOR-NEXT with negative increment
« Reply #2 on: May 22, 2019, 12:35:29 AM »
It kept the implementation cleaner. And because we are mean.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: FOR-NEXT with negative increment
« Reply #3 on: May 22, 2019, 12:41:16 AM »
I knew it!  However, you fail at meanness, because typically a FOR is for an index and since 90% of my output instructions are MATH boxes, where you let us do expression indexes anyway....it's all good!
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.