I've been using "this"...there a real downside to it? Stace
-----Original Message----- From: Nathan Dintenfass [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 8:09 PM To: [EMAIL PROTECTED] Subject: [CFCDev] Use of "instance" in 6.1 OK, now that RedSky is in the public we can talk about some of the implications of the changes. I had assumed that once RedSky came out I would abandon using my virtual "private" scope I always call "instance" and start using "variables". But, now I'm not so sure. Why? For one, the variables scope in a CFC contains a key called "THIS" -- which still just feels very wrong to me. Also, the variables scope contains keys for every method in a component, public and private. I find it attractive to think that the "instance" struct contains only instance data and nothing else. I've used it in many places to do things like persistence of a component instance (basically, by returning and serializing "instance") and for things like cloning/mirroring of component instances. Those may seem like esoteric cases, but they may be reason enough for me to stick with "instance" (especially since they indicate to me there may be future reasons I can't yet imagine to want all my instance data in a single, unsullied, struct ("scope", if you will). But, I'm not sure -- and thus the purpose of this thread. Am I crazy to stick with "instance" over moving to "variables"? - Nathan ---------------------------- Nathan Dintenfass [EMAIL PROTECTED] http://nathan.dintenfass.com Now bloggin' at: http://www.changemedia.org ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). AVIS IMPORTANT: ------------------------------- Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. WARNING: ------------------------------- The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
