[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running a script file inside c++ code
From: |
Mike Miller |
Subject: |
Re: Running a script file inside c++ code |
Date: |
Tue, 16 Aug 2016 08:00:03 -0700 |
User-agent: |
Mutt/1.6.2-neo (2016-07-23) |
On Mon, Aug 15, 2016 at 23:03:49 -0700, sumeet kumar wrote:
> This, all works well. The only problem is that I need to generate a
> "script" file each time I do any of these computations. Because the
> *Source_File*() function requires a file_name as parameter.
>
> Now, what I want is the following.
>
>
> 1. I do not want to generate any file and then pass on the octave
> parser. This is very slow and takes lot of time.
> 2. I want a function that do not need to generate any external file. i.e
> I would like a function such as
>
>
> - FUNCTION(string) -> directly giving me result
> - Also, in the string I should be able to use any function of octave or
> from any external file, which I am currently able to use through my
> approach as shown above.
Your code shows that you are using both source_file and eval_string.
Have you tried using eval_string alone? Your description looks exactly
like what eval_string is.
--
mike