Hi Bernat,

In general: jal and arrays as parameters are no great combination. It works
to some extend, but it is not at the core like it is in C.

On your specific question: my suggestion would be to use a global array.
However if you want to continue on your path: my bet you have (a bit) more
chance of success if you use a fixed size array.

Joep


Op woensdag 11 december 2013 schreef Bernat Romagosa (
[email protected]):

> Hi list!
>
> I'm quite new to JAL, and I'm not succeeding at returning an array from a
> function, here's what I'm currently trying:
>
> function whatever() return byte[] is
>
> var byte array[]
>
> (...)
>
> return array
>
> end function
>
>
> But it fails with this error message:
>
> unexpected token: "["
>
>
> Any ideas?
>
> Thanks a lot!
>
> Bernat.
>
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:_e({}, 'cvml',
> 'jallib%[email protected]');>.
> To post to this group, send email to 
> [email protected]<javascript:_e({}, 'cvml', '[email protected]');>
> .
> Visit this group at http://groups.google.com/group/jallib.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to