[Swift-user] Passing an array to swift?

Glen Hocky hockyg at gmail.com
Fri Apr 15 16:31:25 CDT 2011


I've done what Mike suggested but you can also use @strsplit on a
comma separated command line arg and that works well for me.

Glen

On Apr 15, 2011, at 5:20 PM, Michael Wilde <wilde at mcs.anl.gov> wrote:

> Maybe direct the array into a file (possibly with a "here document" which expands the array) and then read the file in Swift with readData() or process it with a Swift app() function?
>
> - Mike
>
>
> ----- Original Message -----
>> Hello
>> Not directly because the interface is the command-line. Can you
>> give us more of a use case?
>> Justin
>>
>> On Fri, 15 Apr 2011, Sheri Mickelson wrote:
>>
>>> Hi,
>>>
>>> Is it possible to pass a c-shell array to swift? And if so, how do
>>> you
>>> do it?
>>>
>>> Thanks, Sheri
>>> _______________________________________________
>>> Swift-user mailing list
>>> Swift-user at ci.uchicago.edu
>>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>>>
>>
>> --
>> Justin M Wozniak
>> _______________________________________________
>> Swift-user mailing list
>> Swift-user at ci.uchicago.edu
>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user
>
> --
> Michael Wilde
> Computation Institute, University of Chicago
> Mathematics and Computer Science Division
> Argonne National Laboratory
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user



More information about the Swift-user mailing list