Question

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?

Was it helpful?

Solution

I don't think this is an operator of int. This is syntactic sugar for for x = x & y

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top