[vector] Error message in the fromArray length check is misleading
John Rose
john.r.rose at oracle.com
Thu Jan 31 18:42:55 UTC 2019
On Jan 31, 2019, at 8:45 AM, Adam Pocock <adam.pocock at oracle.com> wrote:
>
> I think you'd need to capture vlen to recover the correct end values for the indices, which makes it rather ugly. Maybe it could be moved onto the vectors themselves, that way the lambda could be static and it would pick up a static vlen?
Yes, you cottoned onto the capture problem quickly.
To display vlen in the error message, the right way to
go is statically create on lambda for each possible vlen.
More information about the panama-dev
mailing list