function/wave and return
Tue, 08/27/2019 - 08:29 am
I wonder if there is a recommended procedure for the following case:
wave w = sub()
// this may also be another condition that causes the function to not run through
// what's best to return now? A non-existing wave? Make/N=1 w=NaN; return w?
// more code
Obviously "return NaN" is inconsistent with the function type although it compiles but gives an unexpected result (at least for me):