Skip to main content
9 events
when toggle format what by license comment
Dec 9, 2013 at 18:44 history edited FrustratedWithFormsDesigner CC BY-SA 3.0
added 181 characters in body
Dec 9, 2013 at 17:34 history edited FrustratedWithFormsDesigner CC BY-SA 3.0
added 22 characters in body
Dec 9, 2013 at 17:32 comment added Izkata @gnat Even if so, the correct equivalent wouldn't prevent the loop from running, the OP's code limits the maximum iterations. To get the same effect: len = min(len, MAX_VALUE_FOR_I)
Dec 9, 2013 at 17:20 comment added gnat if (i< MAX_VALUE_FOR_I) { loop-by-i; } looks slippery. Did you by chance mean if (len< MAX_VALUE_FOR_I)?
Dec 9, 2013 at 16:58 history edited FrustratedWithFormsDesigner CC BY-SA 3.0
added 147 characters in body
Dec 9, 2013 at 16:46 vote accept 1252748
Dec 9, 2013 at 16:44 comment added FrustratedWithFormsDesigner @Izkata: Yes, that's a very good point!
Dec 9, 2013 at 16:36 comment added Izkata Not quite the same - that check happens once, instead of each iteration
Dec 9, 2013 at 16:27 history answered FrustratedWithFormsDesigner CC BY-SA 3.0