[Pas2js] Testing generics

Michael Van Canneyt michael at freepascal.org
Tue Oct 22 23:41:30 CEST 2019



On Tue, 22 Oct 2019, Ben Grasset wrote:

> On Fri, Oct 18, 2019 at 5:23 PM Michael Van Canneyt <michael at freepascal.org>
> wrote:
>
>> At least TJSArray and TJSPromise are on my list for replacement with
>> generic
>> types, as well as TTypedArray and friends. For backwards compatibility I'll
>> keep the current classes as specializations with JSValue.
>>
>> Do you have other classes in mind that could be usefully replaced/enhanced
>> with
>> a generic variant?
>>
>
> There's a fair number overall. I actually have a "JSGenerics" unit I made
> for the purposes of playing around with generics in Pas2JS that I could
> submit as a patch for you to look at, if you want.

Please send it to me, I'll use it as inspiration for changing the existing
classes.

Michael.


More information about the Pas2js mailing list