Blog

Blog posts made on 01-May-07
1May
2007
Implicit Array And Structure Creation In Scorpio

This one was also met with loud applause last night's Dallas usergroup presentation. Scorpio supports implicit array and structure creation. Here are some simple examples, first array:

view plain print about
1<!--- CFMX7 code --->
2<CFSET myArray=ArrayNew(1)>
3<CFSET ArrayAppend(myArray, "Adam")>
4<CFSET ArrayAppend(myArray, "Ben")>
5<CFSET ArrayAppend(myArray, "Tim")>
6
7<!--- In Scorpio you can use this code --->
8<CFSET myArray=["Adam","Ben","Tim"]>

Here's how it works for structures:

view plain print about
1<!--- CFMX7 code --->
2<CFSET myStruct=StructNew()>
3<CFSET myStruct.product="ColdFusion">
4<CFSET myStruct.version=8>
5
6<!--- In Scorpio you can use this code --->
7<CFSET myStruct={product="ColdFusion", version=8}>

Read More ›

1May
2007
Next Stop, Austin And Houston

Last night's Scorpio presentation in Dallas was incredible. The venue was superb (although I was initially worried when I walked in, stuffing people with hot food and them putting them in big comfy chairs can be a recipe for disaster), the crowd was loud and animated and enthusiastic (it took over 30 minutes to get through my first two slides!), and everyone wants Scorpio now!

I am in DFW, about to board a flight to Austin for a midday session, and then I drive to Houston for a presentation this evening. I hope to see you there (or at any of the other upcoming Scorpio Usergroup tour venues).

Read More ›

1May
2007
ColdFusion And JavaScript Like Operators

This one was met with a round of applause last night in Dallas. In Scorpio you can now use the following in CFML expressions:

view plain print about
1++ -- % += -= *= /= %= && || !

In addition, in <CFSCRIPT> you can use the following operators:

view plain print about
1== != < <= > >=

Read More ›