[Pvmanager-devel] Data conversion from scalar to array
Brought to you by:
carcassi,
epics-jenkins
From: Carcassi, G. <car...@bn...> - 2010-12-07 15:53:29
|
Hi all, Since Epics3 does not distinguish between scalars and array, PVManager does and PVAcces does/will, I am wondering whether we should support (or not) automatic conversion between them. That is: if I ask for a VDouble, but the native type is an array VDoubleArray, should I automatically return a VDouble with the first element or return a type mismatch error? If I ask for a VDoubleArray, but the native type is a VDouble, should I return a VDoubleArray with an array of size 1 or return a type mismatch error? My hunch is to not make these conversions by default, but to provide (if needed), an operation that does such conversion... this way the user can do it but it's an explicit operation. Agree? Disagree? Gabriele |