Skip to Content.
Sympa Menu

texmacs-users - Re: Draw Curve

Subject: mailing-list for TeXmacs Users

List archive

Re: Draw Curve


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: Massimiliano Gubinelli <address@hidden>
  • Cc: address@hidden
  • Subject: Re: Draw Curve
  • Date: Tue, 24 Mar 2020 15:24:49 +0100

Hi Max,

thanks for the hint, I did not realize that it is possible to filter the commands one allows through load. I will work on it, take down the dangerous command for the time being (it means that the program presently won't work but it is fine) and if I need some help will write again.


Giovanni

On 24.03.20 15:20, Massimiliano Gubinelli wrote:
Dear Giovanni,
is quite dangereous (as you observe in the readme) to allow arbitrary
scritps to execute. One should make available to the executing script only
the commands needed to create a picture (and maybe mathematical/string pure
functions). This is possible since load take (if I remember correctly) as
argument an 'environment' or 'module' with the available bindings. This would
make execution safe.

That is a nice exercise in scheme/guile for you. :)

max


On 24. Mar 2020, at 15:11, Giovanni Piredda <address@hidden> wrote:


On 24.03.20 14:18, Giovanni Piredda wrote:

There is an error - I think at loading - which does not stop the package from
working; I would appreciate help to fix it. The error is

<unnamed port>: In procedure struct-vtable in expression (struct-vtable obj):
<unnamed port>: Wrong type argument in position 1 (expecting struct):
#<procedure insertGraphics (graphicsFile)>
<unnamed port>: In procedure struct-vtable in expression (struct-vtable obj):
<unnamed port>: Wrong type argument in position 1 (expecting struct):
#<procedure insertGraphics (graphicsFile)>

(the repetition is in the output)

Giovanni


I found the reason, the path argument of the use-module statement was wrong,
will upload the correction presently in the GitHub repository.


G.




Archive powered by MHonArc 2.6.19.

Top of Page