cheeyang
(cheeyang)
1
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.
ck
(Carlo Kok)
2
register 1 of them under a different name. PS doesn’t support overloading.
MaxWeber
(Max Weber)
3
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