You are here

When is a structure not a structure ?

Question: When is a ColdFusion structure not a structure, as checked by isStruct() ?
Answer: When the structure is a CFC !

In ColdFusion, isStruct() returns true for structures and CFCs. If you really want only structures, you need to add 'not isObject()' too.
Brian Kotek confirms that "CFCs can also be treated as structures for most purposes .... StructKeyExists() [etc]".

Sections: 
topical-homopterousif you are reading this, don't click it as it will mark you as a spammer
if you are reading this, don't click it as it will mark you as a spammer