Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 79. Extending ColdFusion with CFX > Returning Structures from CFX Tags

Returning Structures from CFX Tags

As you probably already know, ColdFusion supports a feature referred to in the documentation as Smart Structs. The idea behind the Smart Structs feature is to make it easier to construct complex data structures in CFML code. Basically, if you use <cfset> or some other mechanism to create a variable, and the variable name contains dots or square brackets such that the new variable would be nested within a structure of structures, ColdFusion will automatically create any intermediary structures necessary to allow the <cfset> to execute without errors.

To illustrate, consider the following line:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial