Question: Why does a table returned from a procedure only show the table name and subscript but not data when using bracket access notation?

I just spent 5h trying to figure out why when I return a table from a procedure defined in an .mpl file, and then execute that procedure in a worksheet, I can't access the table entries by using regular ol' bracket notation.

I can see the keys and values by using indices and entries and passing in the return value of the procedure, but that's it.

I have tried using eval, and I have even tried reproducing my use case in a simpler worksheet to try to isolate the issue but the issue doesn't appear. I am working in an .mpl file within a larger Maple project. I have read about last name evaluation, and have tried using eval with a numeric second parameter. Nothing works.

The file is very small and contains one single procedure, and it doesn't import any other file.

When I get the return value from my procedure and print it out all I see is the name of the original table defined in the procedure and the subscript I am trying to access, but not the data.

Maddening. 

Please Wait...