# Sharing registered classes between instances of pascalscript

**URL:** https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069
**Category:** Pascal Script
**Tags:** delphi, pascalscript
**Created:** [January 27, 2017, 4:19pm UTC](https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069 "2017-01-27T16:19:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![larkone](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/l/3ec8ea/32.png) [@larkone](https://talk.remobjects.com/u/larkone)
#### Post date: [January 27, 2017, 4:19pm UTC](https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069/1 "2017-01-27T16:19:59Z")

</div>

Hello,  
is it possible to register classes(and methods,properties etc.) to script and share it with other instancies of script?  
I’ve got 10 instancies with same registered classes and methods so im finding way to share it between them and register it only once

If yes how?

Thank you.

---

<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 27, 2017, 4:32pm UTC](https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069/2 "2017-01-27T16:32:57Z")

</div>

You can share the instances of the classes, and use the same TPSPlugins if you use that, but you can’t share the actual class registrations no.

---

<div class="post-metadata">

### Author: ![larkone](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/l/3ec8ea/32.png) [@larkone](https://talk.remobjects.com/u/larkone)
#### Post date: [January 27, 2017, 4:56pm UTC](https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069/3 "2017-01-27T16:56:08Z")

</div>

you mean share the instances of the classes what i registered to script? Thats not what i need. So i cant share registered stuff between them right?

---

<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 27, 2017, 6:02pm UTC](https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069/4 "2017-01-27T18:02:52Z")

</div>

Indeed you can’t.

---

<div class="post-metadata">

### Author: ![larkone](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/l/3ec8ea/32.png) [@larkone](https://talk.remobjects.com/u/larkone)
#### Post date: [March 28, 2017, 6:33am UTC](https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069/5 "2017-03-28T06:33:08Z")

</div>

Is possible to register class only once? In first time calling compile it will be registered and then next when i ll call compile previous registrations will be stored? because every time in compile are all classes re-registered.

Thanks

---

<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: [March 28, 2017, 6:45am UTC](https://talk.remobjects.com/t/sharing-registered-classes-between-instances-of-pascalscript/12069/6 "2017-03-28T06:45:35Z")

</div>

No. They have to be registered every compile.
