Question: Possible bug with printlevel in Maple 14?

I was very comfortable using printlevel with loops, conditionals and procedures in Maple 13, but recently upgraded to Maple 14.

The problem is that, regardless of printlevel, statements nested more than 1 from the top level of maple do not show. Oddly, this doesn't affect procedures or even nested loops inside procedures. The simple code here demonstrates the problem.

>restart;
>printlevel:=100:
>for i from 1 to 2 do
       for j from 1 to 2 do
             k:=i+j;
       end do;
  end do;

Nothing gets displayed. I have semicolons after everything, and the value of k is 4 at the end. I could of course bypass the problem by using print(k) in the loop, but printlevel should display the commands.

As mentioned above, the problem does not apply to loops inside procedures:

>restart;
>printlevel:=100:
>testproc:=proc()
  local i,j,k;

  for i from 1 to 2 do
       for j from 1 to 2 do
             k:=i+j;
       end do;
  end do;

  k;

  end proc:

>testproc();
--> enter testproc, args=
                                      k:=2
                                      k:=3
                                      k:=3
                                      k:=4
                                        4
<-- exit testproc (now at top level) = 4}
                                        4

 

Anyways, thats my problem, am I missing something simple, or did Maple change this intentionally? Or, perhaps it is possibly a bug. Unfortunately, I don't have access to Maple 13 anymore but I am fairly certain these commands were working in the previous version.

Thanks in advance for the responses!

Please Wait...