[Swift-devel] Re: passing types and variables in swift

Ben Clifford benc at hawaga.org.uk
Thu Oct 4 11:53:27 CDT 2007



On Thu, 4 Oct 2007, Michael Wilde wrote:

> is one way to do this to 'eval' a file containing swift expressions?
> Or, to #include them?
> This would look like a keyword-based value file
> 
> myparms.rho[0]=0.1 mparms.theta[0]=0.2
> myparms.rho[1]=0.4 mparms.theta[0]=0.8
> ...
> myparms.rho[N-1]=0.etc mparms.theta[etc]=0.etc
> 
> even if not as clean as extractcsv, it might be both fast and useful for many
> other purposes.

you can do that already - generate a swiftscript source file from some 
other source. nika did something like this (and still does, but to a 
lesser extent) for moldyn.

-- 



More information about the Swift-devel mailing list