you could put instructions in a file and pass the filename as arg1.
then open the file and read and process the instructions


---------- Original Message -----------
From: "CJ" <li...@hth.com>
To: "'mailing list for gambas users'" <gambas-user@lists.sourceforge.net>
Sent: Wed, 11 Feb 2015 15:23:36 +0100
Subject: Re: [Gambas-user] Invoking interpreter from complied program

> > Is it possible for a compiled program to read instructions
> > from a text file?
> > I'm trying to write a program that can have functions added
> > without needing to recompile the base program.
> 
> I've been using the following to execute Gambas script and passing data via
> arguments
> to the script, then catched the output of the script in a variable.
> 
>   Shell "/path/to/script.gbs arg1 arg2" To variable
> 
> Don't know if this is the best way but it works but I'm interested to learn
> about
> other/better ways to do it...
> 
> /CJ
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to