In Flex 3,
var anInstance : MyClass = new MyClass();
with (anInstance)
{
property1 = "fred";
property2 = 5;
propert3 = 7;
}
does NOT flag "propert" as a non-existent property name. I thought this was a remainder of the evil JavaScript object behavior (referring to a property name of an object implicitly creates it), but it seems to be a side-effect of the "with".
This makes me very sad as the "with" was a little reminder of Delphi (except it works correctly there).
Am I missing something here?