- Debugger: Getting mixed signals
- 'Packaging Infrastructure' Contract Weekly Report #4
- Haiku monthly activity report - 06/2015
- 'Packaging Infrastructure' Contract Weekly Report #3
- 'Packaging Infrastructure' Contract Weekly Report #2
- GCI 2014 winners trip report (mentor side)
- TeX Live and LyX; Changes to the boot code
- 'Packaging Infrastructure' Contract Weekly Report #1
- Beginning of 'Packaging Infrastructure' Contract
- Haiku monthly activity report - 05/2015
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. ;)
Re: Lesson 6: More Loops and Conditions
On the bughunt example, why is the first function declared as a pointer?