for last 4 hrs, I've been chasing this problem.
Inside a module, there is a proc with name say foo(). local to the module. When creating an mla file that contains this module read from .mpl file, and running a test against it, Maple does not see this specific proc foo() as a proc, but only sees it as a symbol.
So the call to foo() never happens. I have a print statement inside foo() also which never prints. In the debugger, when I try to step into foo(), it fails also. Maple simply does not see it as a proc.
I also added my_module:-foo() in call, but this made no difference, even though it is not needed to prefix the module name, since foo is a local proc.
Now, instead of making an .mla, I now just read the .mpl file directly which make up the module. And now run the same test, and now maple see foo() as proc.
No change in code at all. Nothing changed, exacept the test is called one time when package is inside the .mla vs. just using plain .mpl files.
It seems something goes wrong with symbol table or such when inside mla file.
When I do
libname := currentdir(), libname;
And browse the content inside my mla file, I see no problems, it lists all 24 procs inside the package, and I can see foo() listed there as type PROC.
But in the code, what printing whattype(foo) it says it is symbol when using mla file, but it says it is a procedure when not using mla, but just by reading the .mpl file which went into the .mla
I will try to make an example to reproduce this if I can. But has any one seen something like this before? What could cause this? I've restated Maple ofcourse, and this made no difference.
The way I build the mla is
For now, I will stop using .mla and just read the .mpl file each time to use the code, as this seems safer and this always worked and never gave me any problems.
I am using 2020.1 on windows 10.