octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #9980] JSON encoder and decoder, alternati


From: Philip Nienhuis
Subject: [Octave-patch-tracker] [patch #9980] JSON encoder and decoder, alternative to object2json
Date: Tue, 27 Oct 2020 07:57:02 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #13, patch #9980 (project octave):

The empty indexing error is Octave-7.0.0 AFAIK.
Same probably for the end indexing.

But 

error: '_num2str_' undefined near line 170, column 170"


occurred in octave-6.0.92 as well; that'll be the new release shortly, so also
(better) try that one first.
What I saw during a brief debug session is that anonymous functions in the
callers are NOT in scope in subfunctions (callees), nested or not. From what I
read in the docs their scoping mimics that of plain variables. So maybe you'd
need to add them as subfunctions; or add them in the input args for called
functions.

All of which makes me wonder how these functions could work at all in your
case. Maybe Octave-5.2.0 was less strict?

I'm no fan of nested subfunctions anyway, usually one sooner or later gets
lost in all kinds of scoping issues, like here. But this is all your pick :-)

Octave prerelease source tarballs and Windows prerelease installers are on
ftp://alpha.gnu.org/pub/octave


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9980>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]