- Network Stack Update
- HCD : Progress report II
- Learning to Program With Haiku Now Available in Book Format
- GSoC: Initial IPv6 code now in trunk
- lklhaikufs: features galore
- Conference report : RMLL 2010
- HCD : Locale Kit progress report
- Services Kit is Going Well
- Anatomy of an elf
- Booting LKL inside Haiku
Lesson 6: More Loops and Conditions
Here marks the beginning of the second unit in my series, "Learning to Program With Haiku." Lesson #6 expands on our knowledge of loops and decision-making constructs. Good luck! Learning to Program With Haiku, Lesson 6.
- darkwyrm's blog
- Login or register to post comments







Comments
Re: Lesson 6: More Loops and Conditions
Nice lesson, DarkWyrm.
WRT the switch-case-thingy: So, the "break;" in a default switch-case is actually optional. Should one put it in there or not? On the one hand it signals that it will definitely break out at this place, on the other hand this could tempt you to simply remove it, erroneously thinking this would then execute the following code...
Two tiny typos on page 5:
Regards,
Humdinger
Re: Lesson 6: More Loops and Conditions
Nice lesson, DarkWyrm.
WRT the switch-case-thingy: So, the "break;" in a default switch-case is actually optional. Should one put it in there or not? On the one hand it signals that it will definitely break out at this place, on the other hand this could tempt you to simply remove it, erroneously thinking this would then execute the following code...
Thanks! Technically, a break statement in the default case is optional, though many put it in there out of habit.
Two tiny typos on page 5:
Regards,
Humdinger
The first one has been corrected. Thanks for pointing it out. :) The second one isn't a typo -- some people here in the US really do talk like that, even if it's not grammatically correct. ;)