Your first cigarette
To be honest, inhaling the fumes from some burning leaves isn't the most natural thing in the world.
Tell us about the first time. Where, when, and who were you trying to show off to?
Or, if you've never tried a cigarette, tell us something interesting on the subject of smoking.
Personally, I've never ever smoked a cigarette. Lung damage from pneumonia put me off.
( , Wed 19 Mar 2008, 18:49)
To be honest, inhaling the fumes from some burning leaves isn't the most natural thing in the world.
Tell us about the first time. Where, when, and who were you trying to show off to?
Or, if you've never tried a cigarette, tell us something interesting on the subject of smoking.
Personally, I've never ever smoked a cigarette. Lung damage from pneumonia put me off.
( , Wed 19 Mar 2008, 18:49)
« Go Back
Gotos are useful
Eg.
if something
{
if something else that can't be tested until the 1st if is true
{
do this
}
else
{
goto ELSETHIS
}
}
else
{
ELSETHIS:
do that
}
I mean, you could create a seperate function/method/subroutine and then execute that in both elses, but I think this way is cleaner.
Back on topic, *click*
( , Thu 20 Mar 2008, 20:04, closed)
Eg.
if something
{
if something else that can't be tested until the 1st if is true
{
do this
}
else
{
goto ELSETHIS
}
}
else
{
ELSETHIS:
do that
}
I mean, you could create a seperate function/method/subroutine and then execute that in both elses, but I think this way is cleaner.
Back on topic, *click*
( , Thu 20 Mar 2008, 20:04, closed)
nooo
Dijkstra says no, and Dijkstra wins. GOTOs are a four letter word. Purists don't need 'em!
Although - bollix - I used one in a post two weeks ago. Damn.
( , Thu 20 Mar 2008, 20:11, closed)
Dijkstra says no, and Dijkstra wins. GOTOs are a four letter word. Purists don't need 'em!
Although - bollix - I used one in a post two weeks ago. Damn.
( , Thu 20 Mar 2008, 20:11, closed)
I agree GOTOs are bad form
If your language guarantees left-to-right evaluation of the if clause, you could just do:
if something && something else that can't be tested until the 1st if is true
{
do this
}
else
{
do that
}
...otherwise I much prefer this:
didThis = false
if something
{
if something else that can't be tested until the 1st if is true
{
do this
didThis = true
}
}
if not didThis
{
do that
}
( , Mon 24 Mar 2008, 21:21, closed)
If your language guarantees left-to-right evaluation of the if clause, you could just do:
if something && something else that can't be tested until the 1st if is true
{
do this
}
else
{
do that
}
...otherwise I much prefer this:
didThis = false
if something
{
if something else that can't be tested until the 1st if is true
{
do this
didThis = true
}
}
if not didThis
{
do that
}
( , Mon 24 Mar 2008, 21:21, closed)
« Go Back