On Fri, 17 Jul 2020, Kayraklioglu, Engin wrote:

I think the issue here is that `anArray/aScalar` does not literally result in an array but a promoted expression as you have observed. The rationale for that is to avoid creating arrays as much as possible, and try to do that if the user explicitly asks for it (as you did in your workaround). Some more discussion about this can be found in:

 https://github.com/chapel-lang/chapel/issues/14364

And to some extent some other issues that are linked from that one.

Perfect.

The error message is now very clear which it was not when I first saw it.

I will go and ponder the pearls of wisdow that have been uttered there!

Note I could not find this issue when I went fishing for it. But I was searching for this at midnight so maybe my brain was in sub-optimal mode!

Thanks heaps - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer


_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to