Reputation: 11220
I get error when invoke this function:
Dart_Invoke(dh_value, Dart_NewStringFromCString("&="), 1, mask);
Here is error message:
Breaking on exception: Class 'int' has no instance method '&='.
How Dart programmers invoke operators in C++?
P.S.
I use Dart SDK version 1.2.0-dev.1.0
Maybe I need to switch to the stable version instead of using development version?
Upvotes: 1
Views: 206
Reputation: 657937
I don't think this is an operator of int. This is syntactic sugar for for x = x & y
Upvotes: 3