Re: Can returning a value change the value itself (in the Halting Problem)

From: Martin Shobe (mshobe_at_sbcglobal.net)
Date: 08/24/04


Date: Tue, 24 Aug 2004 11:21:37 GMT

On Tue, 24 Aug 2004 04:26:01 GMT, Marc Goodman
<marc.goodman@comcast.net> wrote:

>Martin Shobe wrote:
>> On Mon, 23 Aug 2004 15:02:30 GMT, Marc Goodman
>> <marc.goodman@comcast.net> wrote:
>[...]
>>>such that the result returned from the function when called
>>>on its own source code is the same with or without the line.
>[...]
>> Yep. You just did it. (Notice that the printf statement has no
>> effect on the return value.)
>
>I'm sorry, did you not read the spec the first two times?
>Here it is again. Change the source code, and the value returned
>from Hash when _run on it's own source code_ changes, UNLESS
>suitable code is supplied for the NO-OP block. If such code
>even exists. That includes adding the printf statement
>to the source code, obviously.

Of course the value changed. The *input* changed. But, both
functions implement exactly the same, um, function. Apply the *same*
input to both functions and you will receive the *same* output. That
was my arguement (you know, the one you called naive), which is what
you posted the above challenge to.

Martin



Relevant Pages


Quantcast