They can be defined and used from anywhere, and I agree with you that this is an important feature...saves some headaches =)

One thing though: You cannot use embedded functions unless you have an instance to the parent function. For example:

function Customer(name)
{
function getName()
{
return name;
}
}

I cannot call Customer.getName(), SteelScript does not support static methods. This is valid, though: new Customer("Blah").getName();


Edited by Wessel87 (2007-06-27 09:56 PM)