You can also use array_v_split and array_v_unsplit to safely get/set linear
elements in an array.
On Saturday, August 1, 2020 at 11:01:56 AM UTC-4, Dambaev Alexander wrote:
>
> Hi,
>
> array and arrayptr have constraint {a:vt0p} for most of functions, except
> array_set_at / arrayptr_set_at/array_get_at/arrayptr_get_at, which have
> constraint {a:t0ype}
>
> So we can enumerate elements as viewtypes with foreach family of
> functions, but the only way to set/get them is to use ptr_set/ptr_get,
> right?
>
> Is it expected?
>
--
You received this message because you are subscribed to the Google Groups
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/52b0cfd9-7248-410a-af95-693a6c7ec652o%40googlegroups.com.