Hi Damian --

Oh, now I understand... This was a longstanding issue that should be fixed as of the latest release (specifically, promoted functions did not preserve index sets). Are you using an older one by chance?

Here's my evidence:

https://tio.run/##S85ILEjN@f@/LLFIocJKIdrQQE/P0DJWoSg1MceaiwskXKlgq1BhDWZWgZgKWgoGeqZAyfKizJLUnDyNSr2U/NzEzDxNa7hQFVzo/38A

-Brad


On Tue, 18 Dec 2018, Damian McGuckin wrote:


Sorry, my poor explanation.

My comment was that even if an array has a domain say:

        var x = [10..19] real;

Fill it with data and then assume that you later do:

        var y = x;
        var z = x * 0.5;

The domain of y is

        10..19

but the domain of z is

        1..10

This seems quite strange;

Regards - 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