First, consider the following two analogous codes:

restart:
x := setattribute({1,2},parity):
x,attributes(x);
restart:
x := setattribute([1,2],parity):
x,attributes(x);

Both in Maple 9.5 and Maple 11 they produce the expected output; {1, 2}, parity and [1, 2], parity, respectively. Next, consider the following two analogous codes:

restart:
x := setattribute({1,2},parity = -1):
x,attributes(x);
restart:
x := setattribute([1,2],parity = -1):
x,attributes(x);

In Maple 9.5 they perform as expected, but in Maple 11 the second code does not produce any output. What is going on?


Please Wait...