octave-maintainers
[Top][All Lists]
Advanced

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

running scripts in caller's workspace: tests fail


From: Colin Macdonald
Subject: running scripts in caller's workspace: tests fail
Date: Mon, 07 Jul 2014 17:40:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

See attached codes for minimal working example.

> isolate test isolate test isolate

Second call to "test isolate" fails.

The isolate() function creates a variable in its caller's workspace,
it then calls the isolate_script in the callers workspace and tries
to print out the value of the new variable.

I filed a bug [https://savannah.gnu.org/bugs/index.php?42697] about
this.

Why do I care?  I have some code that traverses the caller's
workspace and mangles it a bit.  It a bit of a hack but it does what
I need.  Except my tests all fail b/c of this!  I think I can
workaround it by copy-pasting the script code in a bunch of places,
but thought this might perplex someone else too!

cheers,
Colin

- -- 
Colin Macdonald
University Lecturer in Numerical Methodologies
Tutorial Fellow at Oriel College
University of Oxford
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJTus2AAAoJEAzlCRPFMm7lu2wIAJa3tyrIzkFnulhFc6JME3HX
LOdn3dtHKrRtTIgNb6wVE+f0VTOYCZUkaDfN9b+eIArFFCxWA98hEez7kGa/D1z4
YTYtrpCbGLCSfB5WsHTgQ/xYmB4VReBEhr0MgdfJ6eimK0wkF9rJF7hRdSR+HEdK
7NA5X7/zSKugTtKhC7pKRwsdU1JEFbHgq0O4Ioh7l6eu1PAvOU0jmkutZkovvEXl
xBK/oRS8mG/7DvYhqR85Gm9dhL6Bdy7o1PIofb5lv/6Dbdzu5atI31yy3BcwBU5e
wj2MMPJYXPJpZx4ndqChKcUsdzQC7P2MbKy6i8d3Rd+z3Pv1DJINGvj01znJ2CQ=
=zzdH
-----END PGP SIGNATURE-----

Attachment: isolate.m
Description: Text Data

Attachment: isolate_script.m
Description: Text Data


reply via email to

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