From: Aaron Scott-Boddendijk [mailto:[EMAIL PROTECTED]]
> [in D4, I haven't got D5 to check whether this has changed]
> 
> The method
> 
> procedure TSomething.Do(const a :array of Integer);
> 
> will accept both static arrays and dynamic arrays.
> 
> but overload it
> 
> procedure TSomething.Do(const a :array of Integer); overload;
> procedure TSomething.Do(const a :array of String); overload;
> 
> and now it only accepts static arrays... no other changes are necessary...

Cursory tests seem to indicate that it is in fact fixed in D5:

var a: array of Integer;

  MyObject.DoIt(a);

compiles and runs even where DoIt is overloaded.

Cheers,
Carl

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to