Hello everyone,
I found this strange behaviour of series as values in bundles. Script is
explanatory.
<hansl>
clear
set verbose off
nulldata 10
s1 = index % 2 ? 1 : NA
bundle b = null
b.s = s1
smpl 1 5 --permanent
print s1
eval b.s
series s2 = b.s
</hansl>
<output>
gretl version 2022b
Current session: 2022-08-13 06:01
? clear
? set verbose off
Full data range: 1 - 5 (n = 3)
1.00000 NA 1.00000 NA 1.00000
1.0000
1.0000
1.0000
1.0000
1.0000
0.0000
-3.7922e-270
0.0000
0.0000
1.3134e-311
Incompatible types in assignment: series = matrix
Error executing script: halting
series s2 = b.s
</output>
Values change at each run and if I use "print" instead of "eval" the
output is
<output>
gretl version 2022b
Current session: 2022-08-13 06:12
? clear
? set verbose off
Full data range: 1 - 5 (n = 3)
1.00000 NA 1.00000 NA 1.00000
variable 1 duplicated in the command list.
Error executing script: halting
print b.s
</output>
Am I doing something wrong?
Regards
Federico