How to support overload methods in PascalScript?

TStrings class in Delphi XE has these 2 methods:

procedure LoadFromStream(Stream: TStream); overload; virtual;
procedure LoadFromStream(Stream: TStream; Encoding: TEncoding); overload; virtual;

How may I support both methods in PascalScript?

The TStrings in PascalScript always invoke first method even though I have register the 2nd LoadFromStream.

register 1 of them under a different name. PS doesn’t support overloading.

4 years later, is PS still doesn’t support functions and methods overloading?

As far as i understand, it is a opensource project. You can contribute it.

1 Like