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
use BlockDist;
class C {}
var Arr = blockDist.createArray(1..10, unmanaged C);
writeln(Arr);
produces
$CHPL_HOME/modules/dists/BlockDist.chpl:1016: error: cannot default-initialize the array A because it has a non-nilable element type 'unmanaged C'
this is all about the internal implementation. createArray functions should check for the element type and produce a better error message for unsupported types. And/or we should try to support them.
The text was updated successfully, but these errors were encountered:
Definitely agree with the "better error message" request. I'm not seeing how we could support this call though? (specifically, I don't think we should create objects for the user).
Did we ever create a createArray() overload that also took an initial value (or collection of initial values) for the elements? That'd be a different way to support these element types.
produces
this is all about the internal implementation.
createArray
functions should check for the element type and produce a better error message for unsupported types. And/or we should try to support them.The text was updated successfully, but these errors were encountered: