[Gretl-devel] freeze with R foreign block: XPtest

Riccardo (Jack) Lucchetti r.lucchetti at univpm.it
Thu Apr 7 03:11:01 EDT 2016


On Wed, 6 Apr 2016, Allin Cottrell wrote:

> BTW, I think we have by now accumulated more than enough bug-fixes to justify 
> a new release. Anyone have reason why we should wait?

Well, the script below provokes a segfault (not nice); I've known about it 
for a while, but I'd always thought I'd find some time to look into it 
myself before using up Allin's time. However, since you ask...

<hansl>
clear
string jst = sprintf("{\"STR\": \"42\", \"ARR\": [ 11, 22 ] , \"DARR\": [[\"foo\", 111], [\"bar\", 222]] }")

print jst
a = jsonget(jst, "$.STR")
print a

b = jsonget(jst, "$.ARR[0]")
print b

c = jsonget(jst, "$.ARR")
print c

d = jsonget(jst, "$.DARR[0][1]")
print d

# ok so far; now, boom!

e = jsonget(jst, "$.DARR[0]")
print e
</hansl>

-------------------------------------------------------
   Riccardo (Jack) Lucchetti
   Dipartimento di Scienze Economiche e Sociali (DiSES)

   Università Politecnica delle Marche
   (formerly known as Università di Ancona)

   r.lucchetti at univpm.it
   http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------


More information about the Gretl-devel mailing list