Chapel 1.17.1 newbie question (my real effort is much more complicated,
but this illustrates the issue):
record A {
type T = real;
var val : T;
proc =(ref lhs: A, rhs : T) : void {
lhs.val = rhs;
}
}
yields:
assign.chpl:4: warning: The left operand of '
Hi Craig,
I'm also still learning Chapel so not veryn sure whether
this is the right way, but the following seems to work (with
chapel v1.16 on my computer):
record A {
type T;
var val : T;
}
proc =( ref lhs: A, rhs ): void where lhs.T == rhs.type {
lhs.val = rhs;
}
var ar: A( T = r