|
|
 |
Re: FN-FORUM: Am I going mad ?
date posted 1st July 2004 00:32
Javascript == great for some jobs, terrible for others
Andy Macnaughton-Jones wrote:
>
> Javascript == Bag of Shite...
>
> -----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:
>
> > If I have a function;
>
>
> > Function Arse(myvalue)
> > {
> > myvalue="test");
> > return(true);
> > }
>
>
> > If I then call Arse, passing in a value of the parameter myvalue of
> > "changethis", when the value returns, does it do like every other
> > 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
>
>
> --
> 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
>
>
> --
> 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
>
> Unsub: http://www.freelancers.net/rm.php?g?1868E92FCF68E005DE
>
> To Post a New Message: [EMAIL REMOVED]
> Forum Homepage: http://www.freelancers.net/forum.php
>
> http://www.freelancers.net - freelancers and freelance jobs
>
--
Neil Durant
[EMAIL REMOVED]
|
 |
|