declare method for variable

Can I do this
myscript:MonoBehaviour;
myscript.joe()=function(){}
and then call

myscript.joe()

or maybe myscript=new Object();
??
in javascript you can do this
var add=function(a, b)
{
return a+b;
}
alert(add(1,2)); // produces 3
Is this allowed or possible?

Thanks,

Dan

You can’t declare those “lambda” style functions in UnityScript.