You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haxe
Hello everyone,
In HaXe, it's var array = [value, value, value]; to declare an array, right?
What if the value is something like this (RGBA) - value = (0, 0, 0, 100)?
Everytime I try, like var array = [(0, 0, 0, 100), (255, 0, 0, 100), (255, 255, 0, 100), (255, 255, 255, 100)];, it's always returned error "Unexpected ,".
Is that even possible in HaXe? Because in Python that's possible.
If can can not, what's your suggestion?
Thank you
Tarwin Stroh-Spijer
unread,
May 4, 2016, 8:26:19 PM5/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
I think you're trying to use Tuples here which Haxe does not support. You may be able to use Abstracts though I think? So you can define something like: