Well, I bit the bullet and tried it out. I made this page in CF:

<cfscript>
var1 = "hello";
var2 = structNew();
var3 = arrayNew(1);
var3[1] = var2;
var3[1].var4 = var1;

for(i=1;i lte arrayLen(var3);i=i+1) {
writeOutput("hello " & i);
}
</cfscript>

and this page:

<cfset var1 = "hello">
<cfset var2 = structNew()>
<cfset var3 = arrayNew(1)>
<cfset var3[1] = var2>
<cfset var3[1].var4 = var1>

<cfloop from="1" to="#arrayLen(var3)#" index="i">
<cfoutput>hello #i#</cfoutput>
</cfloop>

Same thing, just a little test to see what happens.

The script page generated a 51 line java file, 2 imports, and actually
quite easy to read along to.

The tags page generated an 89 line .java file, 5 imports, fairly
difficult to read, but I noticed it kept mentioning whitespace chars,
even though whitespace management was off.

Well, I've always believed cfscript was better, faster, etc. Now I'm
convinced.

-nathan strutz

Samuel Neff wrote:

> With 6.1 you have to decompile the generated class files.  There are lots of
> tools to do that.  Google.
>
> It's your code, so I'm pretty sure there are no legal issues.  Besides, it's
> a good debugging tool and always good to know what's going on to help with
> optimization.
>
> Sam
>
> -----Original Message-----
> From: Dick Applebaum [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 09, 2004 2:28 PM
> To: CF-Talk
> Subject: Re: Blackstone Strong Typing? was Re: CFX_FileReadLn
>
> On Jul 9, 2004, at 7:35 AM, Samuel Neff wrote:
>
>  >  You don't need access to the CFML source code to see how strong
>  > typing can
>  >  benefit CF and how it can be implemented--only need to look at the
>  > Java
>  >  files generated by CFMX.
>
> How do you do that with CFMX 6.1 -- all I can get is the class files
>
> TIA
>
> Dick
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to