|
|
endless_loop
|
|
kingsuperspecial
|
first_go_here
|
011014
|
|
... |
|
nemo
|
Private Sub Form_Load() Dim twitch As Integer, caly As Integer Dim fish As String twitch = 23 Do While twitch = caly twitch = twitch * 2 + 1 caly = twich * 2 + 1 fish = twitch + caly & " ... " Loop lblout.Caption = fish End Sub
|
011103
|
|
... |
|
freakizh
|
one form of the infinite.
|
020526
|
|
... |
|
randomly recent
|
i could click those links for hours. !
|
040108
|
|
... |
|
p2
|
??? caly wasn't even initialized the loop was never entered that should be under beginningless_loop
|
040108
|
|
... |
|
u24
|
don't know the language, but surely as caly and twitch are defined "As Integer" at the start, the while loop would start whileing? but as I said, I don't know the language (what is that, c?) so I very possibly am wrong.
|
040108
|
|
... |
|
u24
|
oops! no, I see.. twitch=23 whereas caly is still just an unassigned int. gotcha.
|
040108
|
|
... |
|
p2
|
vb or vbscript noted by the damned dims and the lack of ";" but even if caly was initialized to 23 at the end of the first iteration twitch = 47 and caly = 95 and the loop would end (assuming twich is supposed to be twitch)
|
040108
|
|
... |
|
zeke
|
tautology
|
040108
|
|
... |
|
u24
|
why would caly be 95? surely as caly=twi(t)ch*2+1 and twitch=twitch*2+1 then by the end of the first iteration; caly=twitch nay? and maybe, it -would- enter the loop, if the '=' in: Do While twitch = caly is assigning values, rather than comparing. if it -was- assigning, then twitch and caly would always =null. meh. ok, I'm over that now.
|
050128
|
|
... |
|
p2
|
not quite assuming that caly was magically initialized to 23 let's go into the loop line by line line 5: twitch = caly -> (23 = 23) -> true line 6: twitch = twitch * 2 + 1 -> 23 * 2 + 1 -> 47 line 7: caly = twitch * 2 + 1 -> 47 * 2 + 1 -> 95 line 8: irrelevant line 9: loop line 5: titch = caly -> (47 = 95) -> false line 10: irrelevant but outside the loop
|
050128
|
|
... |
|
p2
|
oh yeah and in vb (& vbscript) '=' is the appropriate comparator so it's not an assignment
|
050128
|
|
... |
|
u24
|
oh yeah. (duh!) hehe :-)
|
050128
|
|
... |
|
u24
|
let's make it right: while(true);
|
050128
|
|
... |
|
p2
|
heh, i'm lazier than you while(1);
|
050128
|
|
... |
|
u24
|
assuming C: int main() { while(1); } wouldn't: int main() { main(); } be even lazier?
|
060501
|
|
... |
|
z
|
this sentence is untrue.
|
060501
|
|
... |
|
u24
|
z; along those lines, from the Cambridge Dictionary of Philosophy: suppose we are told there is an Oxford barber who shaves all Oxford men who do not shave themselves. Using this description, we can apparently derive the contradiction that the both shaves and does not shave himself. the article goes on to suggest that the paradox can be resolved either by asserting that such a barber cannot exist, or that the barber must be female. also, paraphrased: Suppose a teacher tells her students on Friday that she will give a quiz one day next week, but that the quiz will be a suprise, in that the students will not know the night before that the next day they will have to take the quiz. The students reason that the teacher cannot wait until the next friday to set the test, because if there has been no test until that day, they will know that the test will be Friday, and hence the quiz will not be a suprise. That only leaves Monday to Thursday, but then by Wednesday evening, they would know that the quiz must on Thursday. The same logic can be applied to every day bar Monday, and hence the only day the quiz could be given would be Monday. Of course, this being the case, the fact that the quiz will be on Monday means it is no longer a suprise, and hence cannot be given at all. Highly recommends the aforementioned book.
|
060501
|
|
... |
|
()
|
()
|
060502
|
|
... |
|
walrie
|
oh oh, as to the surprise quiz. you reason that you can't have a surprise quiz by the above method and then since you aren't expecting a quiz, you can be surprised. i definitely just learned this in my philosophy class.
|
060502
|
|
... |
|
u24
|
hey, that's pretty good. I'm impressed. you do philosophy? cool.
|
060503
|
|
... |
|
misstree
|
i don't want to admit what i feel because it scares me to think that if you found out what i felt, you'd leave but it scares me the same way to think that if you don't know what i feel, you'll leave, so i find that i don't want to admit what i feel because it scares me especially when i think that you might just be okay with not just how i feel but how i am because, obviously, i'm not quite okay with myself yet
|
080929
|
|
... |
|
Lemon_Soda
|
I'll be cool with you as you are till you can take it on yourself. Heck, I'll be cool with you how you are after, too.
|
080929
|
|
... |
|
zeke
|
see: recursive
|
080929
|
|
... |
|
LEMON SODA RESPONDING
|
CHECK
|
081110
|
|
|
what's it to you?
who
go
|
blather
from
|