On Fri, Jan 20, 2012 at 6:03 AM, Justin Scott wrote:
> When you use XMLParse(), the resulting variable is a set of arrays and
> structures, so it's not just "a lot like working" with them, you
> actually are,

What does that even mean in a typeless language?


The way I always explain it when doing CF training is that in a
strongly typed language variable datatypes take precedence over
function/operator datatypes while in CFML funtion and operator types
take precedence over variable datatypes.
So in a strongly typed language the statement "x = y + z" is executed
by looking at the datatypes of "y" and "z", and then searching for an
operator with symbol "+" and a left and right parameter with the right
datatypes. In CFML on the other hand the statement "x = y + z" is
executed by searching for the operator "+", finding out what types its
left and right parameter are and then casting "y" and "z" to the
required type.

So no, the resulting variable from XMLParse() is not a set of arrays
and structures, it is a variable that is cast-compatible with array
and structure functions.

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349567
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to