Re: [flexcoders] Why must default arguments be primitives?

2007-01-20 Thread Roman Protsiuk
I guess the keyword here is "not a compile-time constant". You can use 'null' but not 'new Array()' because it is calculated in run-time. Please, correct me if I'm wrong. R. On 1/19/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote: I just noticed that you cannot set default values for argument

[flexcoders] Why must default arguments be primitives?

2007-01-19 Thread ben.clinkinbeard
I just noticed that you cannot set default values for arguments of complex types like arrays and objects. The error given is 1047: Parameter initializer unknown or is not a compile-time constant, but that doesn't seem to hold water when the code looks like this: public function GetBatchContainersE