[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: write a list of variables to a file, formatted
- From: Javier Guerra Giraldez <javier@...>
- Date: Wed, 26 Jun 2013 10:00:02 -0500
On Wed, Jun 26, 2013 at 9:45 AM, Daniel Barna <daniel.barna@cern.ch> wrote:
> Hi, I have a function which return a list of variables:
> function some_function()
> return a,b,c,d;
> end
nitpicking: that function doesn't return a list of variables. it
returns a list of values.
the values don't have names, so if you want those in your file, you're
out of luck unless you return those too.
why not return a table? then you can write both the keys and values
to the file.
--
Javier