You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will clearly show the issue / need for enhancement?
Dart doesn't have option to pass primitive types by reference to functions.
So can you make something like constructors class_name(this.a,this.b) but not the same.
f(a,b)
{
return [a+b,a*b];
}
void main()
{
int b = 10;
int d = 5;
[b,d] = f(b,d); // i expect here to chance b's value to b+d, d's value
// to b*d
}
like this
What version of the product are you using? On what operating system?
Dart Editor version 1.3.3.release (STABLE)
Dart SDK version 1.3.3
win 7 sp1 x64
The text was updated successfully, but these errors were encountered:
This issue was originally filed by onurca...@gmail.com
What steps will clearly show the issue / need for enhancement?
Dart doesn't have option to pass primitive types by reference to functions.
So can you make something like constructors class_name(this.a,this.b) but not the same.
f(a,b)
{
return [a+b,a*b];
}
void main()
{
int b = 10;
int d = 5;
[b,d] = f(b,d); // i expect here to chance b's value to b+d, d's value
// to b*d
}
like this
What version of the product are you using? On what operating system?
Dart Editor version 1.3.3.release (STABLE)
Dart SDK version 1.3.3
win 7 sp1 x64
The text was updated successfully, but these errors were encountered: