This post is to try clear up any confusion on yesterdays post. The issue was a little confusing and that is probably due to the fact the the example came from some code that was not normal. Ie the code did work as expected it's just not something someone would normally do so it lead to some confusion.
Thanks to Glen who constantly came back with what was really going on I see what I originally thought might have been an error with CF9 was actually functioning as expected.
Here is the demo running: http://cf9.kukiel.net/demos/local/demo4.cfm
All the scopes function the same way as intended.
Anything inside a method that is var scoped will go into the local scope.
local is a scope and will always exist within a method so in CF9 you don't need to define it as its already there.
Here is another sample block of code:
Subscribe to:
Post Comments (Atom)
Categories-
- Actionscript (5)
- Adobe (8)
- AIR (3)
- Apple (2)
- BlackBerry (1)
- CFML (59)
- ColdFusion (84)
- ColdFusion 8 (12)
- ColdFusion 9 (28)
- Database (2)
- Flash (11)
- Flash 10 (6)
- FlashBuilder (4)
- Flex (31)
- Internet Explorer (1)
- iPhone (4)
- Java (8)
- jQuery (1)
- Linux (8)
- Microsoft (5)
- Open Blue Dragon (10)
- Open Source (11)
- Operating Systems (3)
- PHP (1)
- Railo (24)
- SQL (3)
- SVN (2)
- Twitter (2)
- VPS (1)
- Windows (5)

Blog Archive
-
►
2010
(38)
-
►
August
(9)
- ColdFusion and cfquerynew and date times - timesta...
- ColdFusion Lists, SQL IN and cfqueryparam
- iPhone and Flash - Sucess
- ColdFusion jrun and the JVM
- ColdFusion and CFReport
- jQuery or EXTjs
- iPhone 3Gs and Flash player
- Easy way to embed ColdFusion code into your blog
- Flex and the MATE framework in Melbourne
-
►
August
(9)
-
▼
2009
(89)
-
▼
December
(17)
- ColdFusion 9 and the local scope continued
- Is this an issue with the local scope in ColdFusio...
- Are you using ColdFusion 9's ORM?
- Want more performance from a default Railo install...
- WizzyWig the comic and snow
- Linux Start and Stop scripts for Ventrilo - Ubuntu...
- ColdFusion Builder Beta 3 - Any one seen this?
- Streaming AMF channel with ColdFusion 9 and BlazeD...
- Forwarding or masking your domain with GoDaddy
- Cheap ColdFusion hosting
- Should I get an iPhone?
- Full Screen Flex
- Googe Fade Demo
- Google now providing public DNS
- Cumulative Hot Fix 4 for ColdFusion 8.0.1
- Cheap bundled Apple Mac software
- Reading and writing binary to a mySQL database wit...
-
▼
December
(17)
Reccomended:
- TweetTrail
- Load Cell
- MyTouch Cases
- View Prom Hairstyles
- Cell Phone Accessories
- business operating agreement
- learn how to recycle electronics



0 comments:
Post a Comment