Passing array as an function argument.

wobbles via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 11 05:44:00 PDT 2017


On Monday, 11 September 2017 at 12:20:08 UTC, Vino.B wrote:
> On Monday, 11 September 2017 at 12:03:32 UTC, wobbles wrote:
>> On Monday, 11 September 2017 at 11:58:18 UTC, Vino.B wrote:
>>> [...]
>>
>>
>>
>> The type returned from Test1() is a `RangeT!(Array!string)`.
>>
>> This is due to the `[]` on the end of `Fs[]`.
>>
>> Remove the `[]` to just return a `Array!string`.
>
> Hi,
>
>  If i remove the `[]` at the end of `Fs[]` I am getting the 
> same error, if i remove the `[]` from the file "auto t1 = 
> Test1[];" the out is empty.
>
> From,
> Vino.B

This works:
https://dpaste.dzfl.pl/1fd9021739ad


More information about the Digitalmars-d-learn mailing list