Hi all,
starting with commit 2738f1b76f9edf11de0dea5d6caef6e9beec0707, Dart Mojo applications have to change their `main` function.
What changed?:
Before, the Mojo parameters were given in the `arguments` object:
main(arguments) {
arguments[0] => Mojo handle
arguments[1] => URI
arguments[2] => original arguments array.
}
After the change the additional parameters are in the extra message parameter slot, and in Uri.base:
main(arguments, Object mojoHandle) {
var uri = Uri.base;
}
Sidenote: I recommend not to type the mojo-handle as integer.
Why?:
This aligns the main signature of Mojo applications with the standard main signature. In particular, the `List<String> arguments` parameter is not actually a list of Strings, and represents the arguments that were given to the application.
When:
this change has been committed to the repository: #2738f1b76f9edf11de0dea5d6caef6e9beec0707
// florian