AAHHH

ok

so here you are creating a p0inter to a structure in session and in variables scope

but simple values
<cfset session.bla =10>

can be locked
like
<cfset request.bla = session.bla>

yes/



At 10:02 24/10/2002 +0100, you wrote:
when they've finished laughing at that, give them the following code to
prove that it does create a pointer:

<cflock timeout="5" throwontimeout="No" type="EXCLUSIVE" scope="SESSION">
<cfscript>
session.foo = structnew();
session.foo.bar = querynew("mycol");
queryaddrow(session.foo.bar);
querysetcell(session.foo.bar, "mycol", 0);
writeoutput('session.foo.bar.mycol[1] = ' & session.foo.bar.mycol[1] &
'<hr>');
variables.apple = session.foo;
variables.apple.bar.mycol[1] = 1;
writeoutput('session.foo.bar.mycol[1] = ' & session.foo.bar.mycol[1]);
</cfscript>
</cflock>

changing the value of the variables scoped column in the bar query actually
changes the session scoped one.

> -----Original Message-----
> From: Taz -=TT=- [mailto:chris@;cfmaster.co.uk]
> Sent: 24 October 2002 10:15
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] Pointers / Structure again!
>
>
> > yep it does and I am getting it patched ASAP, but for now I
> need to prove
> > that what they are doing is wrong :-)
>
> Tell them that Taz says so
>
>
>
> --
> ** 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]

Reply via email to