We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found I cannot have a const task private variable that is a managed class (i.e. the destructor is invoked for me)
class C { } forall 1..10 with (const c = new C()) { } // error: const actual is passed to 'ref' formal 'x' of chpl__autoDestroy()
However, I can make a var task private class and I can make a const task private record
var
const
class C { } record R { } forall 1..10 with (var c = new C()) { } // this is fine forall 1..10 with (const r = new R()) { } // this is also fine
I think this should be valid code, I see no reason a const task private class should not be allowed while a const task private record is.
The text was updated successfully, but these errors were encountered:
binarytrees-pool
No branches or pull requests
I found I cannot have a const task private variable that is a managed class (i.e. the destructor is invoked for me)
However, I can make a
var
task private class and I can make aconst
task private recordI think this should be valid code, I see no reason a const task private class should not be allowed while a const task private record is.
The text was updated successfully, but these errors were encountered: