[Pas2js] Question regarding the future type helper feature
Michael Van Canneyt
michael at freepascal.org
Fri Jan 4 20:07:03 CET 2019
On Fri, 4 Jan 2019, silvioprog wrote:
> Hello,
>
> Since this feature is planned to be implemented, I have a question about
> the possibility to declare multiple helpers for the same type. I suspect
> you will implement it extending the object prototype, but it seems multiple
> type helpers are not allowed in Pascal code. For example, consider the
> following code:
>
[snip]
> it prints:
>
> Tue Aug 19 1975 23:15:30 GMT-0300 ; My Tue Aug 19 1975 23:15:30 GMT-0300
>
> Many JS plugins works extending prototype, and we can use multiple plugins
> simultaneously, so it should be supported in Pas2JS mode. :-)
I had thought of this myself already. If possible, we will do it.
Michael.
More information about the Pas2js
mailing list