bpar...@adobe.com
unread,Oct 15, 2011, 7:10:00 PM10/15/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to General Dart Discussion
Thanks for clarifying and congratulations to the Dart release.
Just a follow-up remarks:
1. I ran "java -jar dartc.jar hello.dart" with and without --
enable_type_checks and I got this warning or error for "var i = 1.5;"
in both cases:
hello.dart/hello.dart:3: double is not assignable to int
2. dartc's explains "--enable_type_checks" as "Generate runtime type
checks".
It seems that "var i = 1.5;" triggers a warning at compile time, not
at runtime.
3. I am having a hard time differentiating warnings from errors. For
syntax errors I get messages like:
hello.dart/hello.dart:3: Unexpected token 'IDENTIFIER' (expected ';')
To me those messages look the same as other messages.
4. If you run "java -jar dartc.jar hello.dart" a second time, you
don't get a warning.
I suspect that has to do with incremental compilation, because I do
get my warning back when I delete the "out" output folder.
That's all for now.
Best wishes,
- Bernd