RE: [SPAM] [flexcoders] Re: Flexbuilder doesn't give compile error when using a undeclared variable, methods

2009-10-31 Thread Tracy Spratt
ps.com] On Behalf Of benjamine_df Sent: Friday, October 30, 2009 10:20 AM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Flexbuilder doesn't give compile error when using a undeclared variable, methods Compile time we don't need to check for data, we only need t

[flexcoders] Re: Flexbuilder doesn't give compile error when using a undeclared variable, methods

2009-10-30 Thread benjamine_df
I wanted to clarify more on my other response. As Amy referred this does not happen to Dictionary object alone. create an instance of any object , then call a non existing method and you won't get compile time errors. Example var data:Array = new Array() data.xyz() //xyz method does not exist i

[flexcoders] Re: Flexbuilder doesn't give compile error when using a undeclared variable, methods

2009-10-30 Thread benjamine_df
Compile time we don't need to check for data, we only need to check for declared variable, method class etc. So I am in favour for what java is doing. It will help to catch the errors during compile time I think flex allows this because of associative arrays. var data:object = new Object(); n

[flexcoders] Re: Flexbuilder doesn't give compile error when using a undeclared variable, methods

2009-10-29 Thread droponrcll
--- In flexcoders@yahoogroups.com, "benjamine_df" wrote: > > Hello, > > I am new to flex and I make lot of mistakes by calling a method or > field in an object which does not exist. But flex builder 3 doesn't > seem to throw a compile error when I do this. In java it would be a > quick com