-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Am I missing something or should there be an easier way to define Arrays and PoolArrays?
I had to do this
newPoolVector2Array(newArray(a.toVariant(), b.toVariant(), c.toVariant()))which looks ugly.
I noticed the pool arrays only takes an Array, and Array only takes varargs[Variant] or an openarray[Variant]. So I modified Array's newArray to
proc newArray*(s: varargs[Variant, `newVariant`]): Arrayand added new constructors for the pool arrays so I can do call:
newPoolVector2Array(a, b, c)I can make a PR for this.
Metadata
Metadata
Assignees
Labels
No labels