Am 07.09.2020 um 16:20 schrieb Riccardo (Jack) Lucchetti:
On Mon, 7 Sep 2020, Sven Schreiber wrote:
> not sure whether we discussed this before: I'm wondering whether it
> would make sense (if it's feasible...) to allow something like "run s"
> or "include s", where s would be a string variable containing sensible
> gretl/hansl code.
>
> This might mirror the possibility of "outfile" to redirect stuff to a
> string buffer instead of a file (since 2016d according to the
> changelog).
What's wrong with string substitution?
<hansl>
s = "gig.gfn"
include @s
</hansl>
I meant to transfer directly the content of what is gig.gfn in your
example (or rather an .inp file content, really, not .gfn), not the name
of the file. The idea is to avoid the temporary file altogether.
It's not urgent or absolutely necessary, because a temp file is fine.
But I got the idea when I saw (again) that "outfile" allows to put stuff
into a string buffer.
thanks
sven