Reduce and concat operator ?
I work on a program with -gnatX flag enabled because I want array aggregator and reduce attribute
Here is my simplified prog function f return String is ( [for i in 1..4 => "---" ]'Reduce("&","") --i use concat operator here );
But i get the compilation error: wrong operator type
(I write this error from memory it could not be the same exact word)
Any Idea hox fix it ?
EDIT:
So here my response, the error message was error: incompatible arguments for operator
when i renames the operator it strangely work, and thanks to u/sttaft to give me part of the answer.
``` function conck(L,R : Unbounded_String) return Unbounded_String renames "&";
function strToBFValue(str:string) return String is ( To_String( [for i in str'range => To_Unbounded_String("some operation...") ] 'Reduce(conck,NULL_UNBOUNDED_STRING)) );
```
[link] [comments]