[Gambas-user] Invoking interpreter from complied program

nando nando_f at ...951...
Wed Feb 11 18:52:32 CET 2015


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" <lists at ...2828...>
To: "'mailing list for gambas users'" <gambas-user at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list