# How to support overload methods in PascalScript?

**URL:** https://talk.remobjects.com/t/how-to-support-overload-methods-in-pascalscript/477
**Category:** Pascal Script
**Created:** [January 2, 2012, 9:34am UTC](https://talk.remobjects.com/t/how-to-support-overload-methods-in-pascalscript/477 "2012-01-02T09:34:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cheeyang](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/dc4da7/32.png) [@cheeyang](https://talk.remobjects.com/u/cheeyang)
#### Post date: [January 2, 2012, 9:34am UTC](https://talk.remobjects.com/t/how-to-support-overload-methods-in-pascalscript/477/1 "2012-01-02T09:34:24Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [January 2, 2012, 12:10pm UTC](https://talk.remobjects.com/t/how-to-support-overload-methods-in-pascalscript/477/2 "2012-01-02T12:10:27Z")

</div>

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

---

<div class="post-metadata">

### Author: ![MaxWeber](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/m/8e8cbc/32.png) [@MaxWeber](https://talk.remobjects.com/u/MaxWeber)
#### Post date: [January 12, 2016, 10:26pm UTC](https://talk.remobjects.com/t/how-to-support-overload-methods-in-pascalscript/477/3 "2016-01-12T22:26:02Z")

</div>

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

---

<div class="post-metadata">

### Author: ![contoso](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/5f9b8f/32.png) [@contoso](https://talk.remobjects.com/u/contoso)
#### Post date: [January 13, 2016, 1:37am UTC](https://talk.remobjects.com/t/how-to-support-overload-methods-in-pascalscript/477/4 "2016-01-13T01:37:54Z")

</div>

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