[fpc-pascal] TJSFloat32Array casting
ryan at thealchemistguild.com
Sun May 20 10:55:26 CEST 2018
Sorry, I didn’t intend to post to this list. Please disregard.
> On May 20, 2018, at 3:23 PM, Ryan Joseph <ryan at thealchemistguild.com> wrote:
> Did something change? I just tried this and it didn’t work. Casting “arr” to TJSObject didn’t work either. I could swear that used to work a few days ago. Maybe an overload is missing? If TJSArray = TJSObject then should “array of single” = TJSObject?
> arr: array of single;
> TJSFloat32Array.new(TJSArray(arr)); // Incompatible type arg no. 1: Got "TJSArray", expected “TJSArrayBuffer”
> TJSFloat32Array.new(TJSObject(arr)); // Illegal type conversion: "array type" to "class TJSObject"
> Ryan Joseph
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal