[ExM Users] multiple returns allowed in Swift/T
Tim Armstrong
tim.g.armstrong at gmail.com
Wed Aug 7 20:06:04 CDT 2013
You can't declare variables inside a multiple return, you'll have to
declare them first, then assign them in a separate statement.
- Tim
On Wed, Aug 7, 2013 at 8:03 PM, Ketan Maheshwari <ketancmaheshwari at gmail.com
> wrote:
> Hi,
>
> I am writing some benchmark scripts. One of them is SIMO for single input
> multiple output for which an app looks as follows:
>
> app (file _outB1, file _outB2, file _outB3, file _outB4) A (file _inA1){
> "simo.sh" @_inA1 @_outB1 @_outB2 @_outB3 @_outB4;
> }
>
> Wondering if this is the right way to define multiple outputs to an app?
>
> I am getting error message when I call the app in main{} as follows:
>
> (file outb1 <outb1>, file outb2 <outb2>, file outb3 <outb3>, file outb4
> <outb4>) = A (in_a);
>
> The error is:
>
> simo.swift l.22:9 mismatched input 'outb1' expecting RPAREN
> simo.swift l.22:49 no viable alternative at input 'outb3'
> simo.swift l.22:82 no viable alternative at input ')'
> simo.swift l.22:86 mismatched input 'A' expecting GT
> simo.swift l.24:0 mismatched input '}' expecting EOF
> Error occurred during parsing.
>
> Thanks for suggestions to fix this.
>
> --
> Ketan
>
>
> _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20130807/16c80a1e/attachment.html>
More information about the ExM-user
mailing list