문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top