[thelist] CF: Determining which DB used.

Raymond Camden jedimaster at macromedia.com
Wed Sep 12 11:47:28 CDT 2001

> are you implying that there is additional information hidden 
> in the server scope that isn't documented?  if not, could you clarify?

As far as I know, no. Again, I _believe_ the reason was for ISP

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > [...] however, it's not a big deal if you just use a  
> substruct under 
> >Server. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> unfortunately, you can't create a substruct under server as 
> server isn't a valid struct.  when you attempt to create a 
> substruct, you're really only creating a variable with a dot 
> in the name which appears to be under the server scope, but is not.

Not true. Do, <cfset server.foo = structnew()><cfset server.foo.ray = 1>
on page 1, then cfdump server.foo on page 2.
If I had only made a var called "server.foo", that wouldn't work.

However, Jeff makes a VERY good point... if you do NOT do correctly
create a structure, and simply do blah.blah = 1, you are creating a var
called "blah.blah"

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > Well, I'm pushing for it myself internally, but of
> > course, I'm too low on the totem pole to make such
> > decisions. ;) 
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> what about the variables scope?  any chance of that being 
> stored as an actual structure so we can get a dump of all the 
> unscoped variables whenever we like?

Can't say. You have to understand that a lot of this is still top
secret, but more news will be out at DevCon.

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > No, what I meant was:
> >
> > <CFSET Server.MyApp = StructNew()>
> >
> > Then put your crap in there. 
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> ah, so you *were* suggesting a variable with a dot in the 
> name.  if server isn't a valid struct, you can't create a key 
> for it and set that key as a structure.  it's really an 
> unscoped variable with a dot in the name.

Well, I wasn't suggested that, I would never suggest that, I just
assumed people understood me.

Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : jedimaster at macromedia.com
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

More information about the thelist mailing list