Help
-
Search
-
Members
-
Calendar
Full Version:
Recursive Sign
Hashkafah.com
>
Hock
>
Humor
int
Dec 28 2007, 03:15 PM
http://flickr.com/photos/lush/52805877/
Pure Myrrh
Dec 30 2007, 12:55 AM
Good stuff.
Reminds of the ol' "KEEP OFF THIS SIGN" sign.
brianna
Dec 30 2007, 01:59 AM
That's ridiculously stupid.
sle123
Dec 30 2007, 02:10 AM
QUOTE(Pure Myrrh @ Dec 30 2007, 12:55 AM)
Good stuff.
Reminds of the ol' "KEEP OFF THIS SIGN" sign.
Is there also a "DON'T READ THIS SIGN" sign?
Gabbe
Dec 30 2007, 02:20 AM
This post intentionally left blank.
int
Dec 30 2007, 02:29 AM
CODE
class HaltsDecider extends TuringMachine {
public boolean halts(TuringMachine tm) {
...
}
}
class M extends TuringMachine {
public void run() {
boolean halts = new HaltsDecider().halts(this);
if(!halts)return;
else for(;;);
}
}
Gabbe
Dec 30 2007, 02:40 AM
I don't see the recursion, only a nasty infinite loop.
QUOTE(Gabbe @ Dec 30 2007, 02:39 AM)
I don't see the recursion, only a nasty infinite loop.
Ah, I see it. I'm rusty.
int
Dec 30 2007, 02:42 AM
QUOTE(Gabbe @ Dec 30 2007, 02:40 AM)
I don't see the recursion, only a nasty infinite loop.Ah, I see it. I'm rusty.
http://en.wikipedia.org/wiki/Recursive_set
Gabbe
Dec 30 2007, 02:43 AM
I remember when I had to write a recursive adding function.
CODE
int rec_add (int x, int y)
{
(y==0)? return x: return (rec_add (x++, y--));
}
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.
Invision Power Board © 2001-2008
Invision Power Services, Inc.