object literal types

Michael Haufe TNO at TheNewObjective.com
Mon Feb 16 16:54:19 PST 2009


 > var Point:object = {
 >    color:string
 >    x:double = 20,
 >    y:double = 50,
 >    z:double = 3
 > }
-----------------------------------------------------------------------------------------

Sorry, typo correction:

var Point:object = {
    color:string = "red",
    x:double = 20,
    y:double = 50,
    z:double = 3
}



More information about the Es-discuss mailing list