Someone trying to give me a headache is waht it looks like.
It seems vaguely comparable to the conversation a while back on Turing etc.
and the Halting Problem?
This code could potentially be used in an explanation of that situation.
*sits glumly*
I made the mistake of actually READING it.
*rubs temples*
Recursive programming is kinda fascinating though..don't ya think?
:)
How are your earlobes this morning Dances With Horsies? ^_^
-Gel
-----Original Message-----
From: Erika L Walker [mailto:[EMAIL PROTECTED]]
<<<<----what is this all about?
-----Original Message-----
From: Programmer [mailto:[EMAIL PROTECTED]]
The indefinables
----------------
In the 1st installment of a one part series, we'll look at indefinable
statements, indefinable in that they can't be completely evaluated before
time ends.
:-P
Looping statements
------------------
<cfif setVariable("i", "evaluate(i)") and evaluate(i)>
A tunnelish loop. The first time we set i and evaluate i, from that time we
go straight down, evaluate i, evaluate i etc.
Function calls in counting layers can be described as 2
(setVariable,evaluate), 1 (evaluate), 1 (evaluate), 1 (evaluate) etc. (where
(n is integer), f(n) = 1 where n > 2, f(n) = 2 where n = 1 else undefined)
<cfif setVariable("i", 1) and setVariable("v1", "setVariable(""i"", i + 1)
and setVariable(""v##i##"", v1) and evaluate(evaluate(""v##i##""))") and
evaluate(v1)>
A systematically widening loop where every iteration creates a variable and
revalues a variable.
Can also be written
<cfif setVariable("i", 1) and setVariable("v1", "setVariable(""i"", i + 1)
and setVariable(""v##i##"", v1) and evaluate(evaluate(""v1""))") and
evaluate(v1)>
however, under passing examination it can be seen this expanding code has
the same functioning as <cfif setVariable("i", "evaluate(i)") and
evaluate(i)> of evaluating itself.
Anyone managed an infinite-long evaluation (in a single line) that doesn't
occur from evaluating a variable? Or at least not in this same manner?
Hmm. I wonder if any of this code runs... should try that sometime... of
course, i do need a </cfif> somewhere... ;-P
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists