1

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?

mezoni
  • 10,684
  • 4
  • 32
  • 54
  • @mezony Sorry I didn't recognize the second line as error message as it's colored like code - changed it. – Günter Zöchbauer Jan 26 '14 at 16:01
  • 1
    This is not C++ language. This is a print output from a program that happenes to be a C++ program. The language comments are for syntax highlightning and this error message isn't C++ syntax. I didn't recognize it as error message at first as it was colored like code. So I removed it to avoid further confusion. – Günter Zöchbauer Jan 26 '14 at 16:06

1 Answers1

3

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

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567