Shoutbox

Syntax errors in MSDN material? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Syntax errors in MSDN material? (/showthread.php?tid=87316)

Syntax errors in MSDN material? by SmokingCookie on 11-17-2008 at 02:02 PM

Hi there,

In an MSDN article, I got the following code:

code:
// Article
// This is using function in Syntax 1.
function addSquares(x : double, y : double) : double {
   return(x*x + y*y);
}

The debugger, however, states ")" is expected (probably in the param list).

Any ideas why?
RE: Syntax errors in MSDN material? by Eljay on 11-17-2008 at 02:07 PM

Because that documentation is for JScript.net :P


RE: Syntax errors in MSDN material? by SmokingCookie on 11-17-2008 at 02:11 PM

Alright :P