For some reason I don't use that syntax, probably because I come from the C++ world. Do you think it's more efficient to access struct members that way as opposed to using StructFind ()? I would assume they would compile to an equiv. assembly. Structs are implemented as hash tables, so CF probably does the same thing either way.
On Jun 7, 3:41 pm, Sean Corfield <[email protected]> wrote: > On Mon, Jun 7, 2010 at 10:41 AM, redtopia <[email protected]> wrote: > > <cfif StructKeyExists (type)> > > <typeInfo = StructFind (dataTypes, type)> > > </cfif> > > Why not simply: > > <cfif structKeyExists( dataTypes, type)> > <cfset typeInfo = dataTypes[ type ] /> > </cfif> > -- > Sean A Corfield -- (904) 302-SEAN > Railo Technologies, Inc. --http://getrailo.com/ > An Architect's View --http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood -- You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en.
