whats the correct locking for using a function in app scope? any other scope issues I should know about?
@J > -----Original Message----- > From: Steve Martin [mailto:[EMAIL PROTECTED]] > Sent: 10 January 2003 11:51 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] nested tag question > > > Yeah. You can't define a fn in a particular scope, you need to > actually copy it. > So: > > function yadayada() { > whatever; > } > > > application.yadayada = yadayada; // then set some flag to the > effect that the fn has been defined so as not to reread the defn. > //or > request.yadayada = yadayada; > > > Steve > > -----Original Message----- > >From: Justin MacCarthy [mailto:[EMAIL PROTECTED]] > Sent: 10 January 2003 11:47 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] nested tag question > > > You can copy the function into request.scope? so > > function a(){whatever;} > > request.a = a; > > works? cool. so UDF's are basically variables.. > Can you do > > function request.a() {} or something like that? > > Can u tell we skipped from cf4.5 -> MX? > > @J > > > > > -----Original Message----- > > From: Steve Martin [mailto:[EMAIL PROTECTED]] > > Sent: 10 January 2003 11:37 > > To: [EMAIL PROTECTED] > > Subject: RE: [ cf-dev ] nested tag question > > > > > > You could copy the function definition to the request scope. > > Alternatively, putting it in the application scope means that CF > > doesn't have to reread the fn definition each page request. > > > > Steve > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
