[NTG-context] Surprising change in function inspect()

Hans Hagen j.hagen at xs4all.nl
Tue Oct 22 17:15:11 CEST 2019


On 10/22/2019 4:13 PM, Tomas Hala wrote:
> Hi all,
> 
> using the source code
> 
> ======
> \starttext
> \startluacode
>    d={} d.data={"a",0} d.tabulka=function () context("pokus") end
>    inspect(d)
>    d.tabulka()
> \stopluacode
> pokus
> \stoptext
> ======
> 
> I discovered quite surprising change in the output of inspect:

indeed, i don't want to see that stuff

> TL2019:
> 
> table={
>   ["data"]={ "a", 0 },
> }
> 
> TL2018 and older:
> 
> table={
>   ["data"]={ "a", 0 },
>   ["tabulka"]=load("\27LuaR\0\1\4\4\4\8\0\25�\13\
> \26\
> \4\0\0\0\4\0\0\0\0\0\2\4\0\0\0\6\0@\0A@\0\0\29@\0\1\31\0�\0\2\0\0\0\4\8\0\0\0context\0\4\6\0\0\0pokus\0\0\0\0\0\1\0\0\0\0\0\14\0\0\0=[\\directlua]\0\4\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\0\0\0\0\1\0\0\0\5\0\0\0_ENV\0"),
> }
you can always use:

   print(table.serialize(d))

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list