I know it's not a bug, it's just an eye opener for me -- I didn't think cf 
was capable of pointers in the past so, I never worried about it.

Pointers do have it's places -- REFERENCING a value.  If you plan 
on doing work on the original value or replacing it, it's best to use the 
duplicate() function to protect the original value.

I just mentioned this to one of the local developers here and he's like, 
"So what?  I want the session.whatever.duh to be this new value, that's 
less work I have to do.  I said, true, but what if you've got an error -- 
now you can't go back to the original value.  He was like, even if I'm 
using duplicate(), I'm still going to overlay the session.user.blah to 
this value... I added, yes, you are.. but, now you can put error checking 
in before you do the overlay.

All in all, I guess learning stuff like this seperates the hacks from the 
true developers.

~Todd

On Wed, 12 Jun 2002, Raymond Camden wrote:

> Be aware that this isn't a bug - or even an issue (grin). If you know
> what you are doing, this could be pretty powerful. For example, if
> working with a structure in the request scope, something like:
> 
> request.moo.jedi.coo.cows.moo.dogs.bark.cats.barf.jacob.lynn
> 
> You can create a temp ref by using assignment. This will save you a few
> hours of typing. ;)
> 
> =======================================================================
> Raymond Camden, ColdFusion Jedi Master for Macromedia
> 
> Email    : [EMAIL PROTECTED]
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> > Sent: Wednesday, June 12, 2002 9:52 AM
> > To: CF-Talk
> > Subject: re: Absolutly neccesary to cflock session variables
> > 
> > 
> > Well, it's true...crude. =P
> > 
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to