Waiting for an increment

A place where you can chat about whatever.

Moderators: Faalstar, Kefka

User avatar
Deques
$("#Wai").stupidfy();
Posts: 1912
Joined: Thu May 18, 2006 4:39 am
Location: Sweden
Contact:

Waiting for an increment

Post by Deques » Wed Nov 10, 2010 7:32 pm

Code: Select all

$wong = 2;

do {
	print_f("Not yet");	
	$wong = waitBaby();
} while ($wong == 2)

User avatar
Ailise
Site Admin
Posts: 888
Joined: Mon Nov 19, 2007 6:24 pm
Location: Sweden
Contact:

Re: Waiting for an increment

Post by Ailise » Wed Nov 10, 2010 7:33 pm

don't forget to tell us when the loop is done... we don't want get stuck in an endless loop here :P

User avatar
Deques
$("#Wai").stupidfy();
Posts: 1912
Joined: Thu May 18, 2006 4:39 am
Location: Sweden
Contact:

Re: Waiting for an increment

Post by Deques » Wed Nov 10, 2010 7:36 pm

Will do!

User avatar
Kassidy
Site Admin
Posts: 2975
Joined: Sun May 21, 2006 9:59 am
Location: London, UK
Contact:

Re: Waiting for an increment

Post by Kassidy » Thu Nov 11, 2010 3:34 am

I'm guessing that the response "echo 'congratulations'" is appropriate for that statement. ;)

User avatar
Faalstar
Site Admin
Posts: 905
Joined: Wed May 24, 2006 5:43 am
Location: Buried in a soup can
Contact:

Re: Waiting for an increment

Post by Faalstar » Thu Nov 11, 2010 9:48 am

documentation is horrid.

User avatar
DeadWolf
Spikey Tiger
Posts: 1456
Joined: Tue Jan 30, 2007 3:09 pm
Location: Deceased

Re: Waiting for an increment

Post by DeadWolf » Thu Nov 11, 2010 10:32 am

Faalstar wrote:documentation is horrid.

User avatar
Dr. Sheexy
Site Admin
Posts: 3847
Joined: Sun May 21, 2006 8:49 am
Location: Texas
Contact:

Re: Waiting for an increment

Post by Dr. Sheexy » Thu Nov 11, 2010 12:38 pm

Congrats Dekky! :D
Still sad that you decided against naming it Sheexy. :P

Also that's hilarious Faal. XD

User avatar
Kimiko
Mantis Ant
Posts: 1195
Joined: Mon Sep 24, 2007 2:14 pm
Location: Leiden, NL
Contact:

Re: Waiting for an increment

Post by Kimiko » Thu Nov 11, 2010 8:17 pm

Congo rats! :D

User avatar
Faalstar
Site Admin
Posts: 905
Joined: Wed May 24, 2006 5:43 am
Location: Buried in a soup can
Contact:

Re: Waiting for an increment

Post by Faalstar » Fri Nov 12, 2010 4:42 am

No really, it is.
I'm not a programmer.
I don't know what it means.

User avatar
Ailise
Site Admin
Posts: 888
Joined: Mon Nov 19, 2007 6:24 pm
Location: Sweden
Contact:

Re: Waiting for an increment

Post by Ailise » Fri Nov 12, 2010 9:02 am

Deques wrote:

Code: Select all

$wong = 2;

do {
	print_f("Not yet");	
	$wong = waitBaby();
} while ($wong == 2)
$wong = 2; <-- Deques lastname is Wong, so right now he and his wife are 2.

do { <-- start of loop
print_f("Not yet"); <-- means it will display/write the text "Not yet"
$wong = waitBaby(); <-- this runs some function (unknown to us) that check if Wong family is still 2ppl or 3ppl.
}while ($wong == 2) <-- if the waitBaby()/$wong is still 2, then the loop will begin from do { again. If $wong is something else... like 3. Than the loop will end.
Else it will keep write
Not yet
Not yet
Not yet
....

until the baby comes.

:love: hope i could explain :P

User avatar
Deques
$("#Wai").stupidfy();
Posts: 1912
Joined: Thu May 18, 2006 4:39 am
Location: Sweden
Contact:

Re: Waiting for an increment

Post by Deques » Fri Nov 26, 2010 3:20 am

Totally forgot to tell you guys that the loop is broken!

My wife gave birth to a healthy boy last week :)

User avatar
Kimiko
Mantis Ant
Posts: 1195
Joined: Mon Sep 24, 2007 2:14 pm
Location: Leiden, NL
Contact:

Re: Waiting for an increment

Post by Kimiko » Fri Nov 26, 2010 3:36 am

Name? Pictures? ^_^

User avatar
DeadWolf
Spikey Tiger
Posts: 1456
Joined: Tue Jan 30, 2007 3:09 pm
Location: Deceased

Re: Waiting for an increment

Post by DeadWolf » Fri Nov 26, 2010 3:53 am

Integers are immutable. Do some garbage collecting.

Oh, and post some pictures.

User avatar
Dr. Sheexy
Site Admin
Posts: 3847
Joined: Sun May 21, 2006 8:49 am
Location: Texas
Contact:

Re: Waiting for an increment

Post by Dr. Sheexy » Fri Nov 26, 2010 4:36 am

Congrats Dekky!

Seconding Kimiko and Deadwolf for name and pics!

User avatar
Faalstar
Site Admin
Posts: 905
Joined: Wed May 24, 2006 5:43 am
Location: Buried in a soup can
Contact:

Re: Waiting for an increment

Post by Faalstar » Fri Nov 26, 2010 6:32 am

Oh I get it. He had a baby.

Post Reply