This email is to be read subject to the disclaimer below.
> You could argue that CFFUNCTION as a tag needs CFSET for vars
> whereas...
> CFSCRIPT defining a function needs to define vars inside the cfscript
block
It's a limitation of the parser that doesn't have any underlying reason in
Java, that's all. The only reason it's there is because the CFML parser
doesn't have an extra few lines of code that says opening <cfscript> tags
are OK before a var declaration.
> Would you call it a "nuance" rather than a "bug"??
It is only a mild annoyance but it is on the shady grey area between a bug
and a 'feature'. But since now I know how to work around it, it doesn't
bother me any more. I merely noticed that it's there.
Vik
---------------------
Viktor Radnai
Web Developer, National E-Commerce, Ernst & Young
Direct: +61 2 9248 4361
Geoff Bowers
<[EMAIL PROTECTED]> To: "CFAussie Mailing
List" <[EMAIL PROTECTED]>
Sent by: cc:
[EMAIL PROTECTED] Subject: [cfaussie] Re:
cfset + var inside <cffunction>
mon.com.au
16/01/2003 02:33 PM
Please respond to "CFAussie
Mailing List"
[EMAIL PROTECTED] wrote:
> So this wouldn't work:
> <cffunction name="foo">
> <cfscript>
> var i = 0;
> <cfscript>
> [ do stuff here ]
> </cffunction>
>
> Should this be considered a bug?
You could argue that CFFUNCTION as a tag needs CFSET for vars
whereas...
CFSCRIPT defining a function needs to define vars inside the cfscript block
Would you call it a "nuance" rather than a "bug"??
-- geoff
http://www.daemon.com.au/
---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
--------------------
NOTICE - This communication contains information which is confidential and
the copyright of Ernst & Young or a third party.
If you are not the intended recipient of this communication please delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose or distribute this communication without the
authority of Ernst & Young.
Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
Ernst & Young.
Except as required at law, Ernst & Young does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor
that the communication is free of errors, virus, interception or
interference.
Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)
--------------------
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/