[Swift-devel] Swift function from command line

Justin M Wozniak wozniak at mcs.anl.gov
Thu Jan 29 11:17:46 CST 2015


I just added -i and -E to swift-t:

 > swift-t -i io -i sys -E 'printf("args: %i", argc());' a b c
args: 3

(-e is taken for environment variable.)

On 1/23/2015 1:55 PM, Mihael Hategan wrote:
> swift -e <string>
>
> Mihael
>
> On Fri, 2015-01-23 at 13:36 -0600, Ketan Maheshwari wrote:
>> Hello,
>>
>> This came up in a meeting today. I was wondering if it is possible to run
>> an arbitrary swift function from Swift command line? Something along the
>> lines of:
>>
>> swift -cli pow(3,2)
>>
>> I think this feature has been discussed in the past but am not sure if it
>> is available currently or is a planned feature.
>>
>> Thanks,
>> Ketan
>> _______________________________________________
>> Swift-devel mailing list
>> Swift-devel at ci.uchicago.edu
>> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
>
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel

-- 
Justin M Wozniak




More information about the Swift-devel mailing list