RE: FN-FORUM: Am I going mad ?
date posted 1st July 2004 00:07
Javascript =3D=3D Bag of Shite...=20
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Pete
Croft
Sent: Wednesday, June 30, 2004 11:59 PM
To: Andy Macnaughton-Jones
Subject: Re: FN-FORUM: Am I going mad ?
Andy Macnaughton-Jones wrote:=20
> If I have a function;
> Function Arse(myvalue)
> {
> myvalue=3D"test");
> return(true);
> }
> If I then call Arse, passing in a value of the parameter myvalue of=20
> "changethis", when the value returns, does it do like every other=20
> decent programming language and update the value - cos if not
You're either joking or a C++ programmer ;-)
IIRC Javascript doesn't support passing by reference, only by value, so
you'll have to return the explicit value, not just 'true'.
Cheers,
Pete
--
Peter Croft
PC Associates
--=20
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html