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

Reply via email to