Blog

Blog posts made on 09-Jul-09
9Jul
2009
AT&T Product Renewal Powered By ColdFusion

I was just filling in a form to renew an AT&T business line I have, and was pleased to find the process all powered by ColdFusion.

Read More ›

9Jul
2009
64bit ColdFusion For All

To date, 64bit ColdFusion has only been available to ColdFusion Enterprise customers. This will (thankfully) change in ColdFusion Centaur, and all customers will have access to 32bit or 64bit versions, regardless of edition. Yeah!

Read More ›

9Jul
2009
CFML Enhancements Coming Soon

In addition to all of the new features planned for ColdFusion Centaur, and the introduction of the new ColdFusion IDE, we've also managed to sneak in lots of smaller CFML enhancements, some of which are long overdue. Here are some of what we've been working on.

  • Assignments can now be chained, so this will work:
    view plain print about
    1<cfset a=b=c=d=e=f=1>

  • Ternary operators are now supported:
    view plain print about
    1<cfset a = (b &lt; c) ? b : c>
  • In ColdFusion 8 we allowed you to create structures and arrays implicitly, like this:

    view plain print about
    1<cfset struct={bold=TRUE, alignment="center"}>

    The problem is that we didn't quite finish the implementation, and so if you wanted to pass that structure to a tag or function you'd have needed to first save it to a temporary variable, like this:

    view plain print about
    1<cfset struct={bold=TRUE, alignment="center"}>
    2<cfset SpreadsheetFormatRow(sObj, struct, 1)>

    This has been fixed in Cenatur, and the following will now work (as it should have before):

    view plain print about
    1<cfset SpreadsheetFormatRow(sObj, {bold=TRUE, alignment="center"}, 1)>
  • A new <CFCONTINUE> tag has been added, to complement the existing continue CFSCRIPT operator.
  • Support for "finally" has been added via a <CFFINALLY> tag and a finally operator.
  • One of the biggest CFML enhancement is in CFSCRIPT which now supports all of CFML (with minor exceptions where not appropriate). You can now build CFCs entirely in CFSCRIPT, including Application.cfc. You can invoke any tags and functions in CFSCRIPT. You can use new operators like abort, exit, include, and throw, to simplify your CFSCRIPT. In fact, you can now build a complete ColdFusion application entirely in CFSCRIPT, without using any CFML, if you are so inclined.
  • To make the CFSCRIPT enhancements work properly, we've also added a few new functions, WriteDump() is the equivalent of <CFDUMP>, WriteLog()is the equivalent of <CFLOG> (both of these are named similarly to the existing WriteOutput() function), Trace() is the equivalent of <CFTRACE>, Location() is the equivalent of <CFLOCATION>, and Throw() is the equivalent of <CFTHROW>.
  • ColdFusion variables (including complex types like arrays, structures, queries, CFCs, and Java objects) can be serialized to binary objects using the new SaveCFObject() function, and then deserialized later as needed using LoadCFObject(). These functions can work with variables as well as files, so objects can be serialized to disk and then read later when needed.

And we're not done yet. Stay tuned, more cool stuff to follow!

Read More ›