Arrays, as you know, can contain elements of different types. This works perfectly fine:
var arr1 = new[10];
arr1 = [2, "string"; false, 3.14156];
Arrays can also contain "resource" elements. This also works fine.
var arr2 = new[10];
arr2 = [ WatchUi.loadResource(Rez.Fonts.myML), WatchUi.loadResource(Rez.Fonts.myXL) ]
=====================
What would be really nice is to create an array that contains System Fonts (integers) and custom fonts (resources). Then you could iterate thru you set of fonts to pick the best one. Like this:
fontArray = [ Gfx.FONT_SMALL, Gfx.FONT_MEDIUM, WatchUi.loadResource(Rez.Fonts.myML), Gfx.FONT_LARGE ];
======================
But, at least from what I'm seeing, arrays can contain resources, or any other combination of data types. But not resources AND any other data type. So the above causes an error. Ugh.
Is this an intentional limitation, or a parser bug that triggers an error?