We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Array
varargs[Variant]
openarray[Variant]
newArray
proc newArray*(s: varargs[Variant, `newVariant`]): Array
and added new constructors for the pool arrays so I can do call:
newPoolVector2Array(a, b, c)
I can make a PR for this.
The text was updated successfully, but these errors were encountered:
PR #100 cleans this up.
Sorry, something went wrong.
No branches or pull requests
Am I missing something or should there be an easier way to define Arrays and PoolArrays?
I had to do this
which looks ugly.
I noticed the pool arrays only takes an
Array
, andArray
only takesvarargs[Variant]
or anopenarray[Variant]
. So I modifiedArray
'snewArray
toand added new constructors for the pool arrays so I can do call:
newPoolVector2Array(a, b, c)
I can make a PR for this.
The text was updated successfully, but these errors were encountered: