On Sun, 10 Dec 2017, Sven Schreiber wrote:
Hi,
here are some examples, failures at the bottom:
<hansl>
clear
nulldata 20
bundle b = null
series s = normal()
series b.ss = s
print b
# 1. one series directly into list -- works
list L = s
list L print
# 2. one-element list to list in bundle -- works
list b.LL = L
eval nelem(b.LL)
eval varnames(b.LL)
# 3. one-element list from bundle into list -- works
list L2 = b.LL
list L2 print
# 4. one series from bundle into list
catch list L3 = b.ss # fails ("datatype not conformable")
To be acceptable as a member of a list a series must have a name, and
b.ss has no name. (It has an associated bundle key, but abstracted
from the bundle it's just an anonymous temporary object). It's as if
you were to say, for example
list L2 = s^3 # error
# (and 'list L3 = null; L3 += b.ss' doesn't work,
either)
# workaround:
if $error
list L3 = genseries("ss", b.ss)
list L3 print
endif
Yep, the workaround works because it remedies the anonymous status of
the series in question.
# 5. one series into list within bundle
catch list b.LL = s # fails ("expected list")
# workaround:
if $error
list temp = s
list b.LL = temp
eval nelem(b.LL)
eval varnames(b.LL)
endif
This one does look like a bug. I see where the code needs to be
generalized and I'll get to it soon.
Allin