But I believe I found one bug in the language, which I'll try to describe here:
I started with a custom Drawable that has one public variable (field? member? pick your terminology): [FONT=courier new]class ScoreDisplay extends Ui.Drawable {
function draw(dc) { }
public var gameScore;
}[/FONT]
And in my View, I try to set that score: [FONT=courier new]function onUpdate(dc)
{
// This fails
View.findDrawableById("MyGameScore").gameScore = 100;
// This works:
var temp = View.findDrawableById("MyGameScore");
temp.gameScore = 100;
// This would also work:
View.findDrawableById("MyGameScore").setGameScore(100);
}[/FONT]
(I don't remember the exact error message. I'll try to update with that info later)
As best I can tell, the first line should be perfectly valid.
Some other minor nitpicks I found:
- In the Programmers Guide, there is a table of operators and precedence. But the ++ and -- operators aren't listed.
- In the Programmers Guide (installed with the SDK, not the online version), there are examples that have[FONT=courier new] ( : property ) [/FONT]before certain members, but I couldn't find any explanation.