Info
This question is closed. Reopen it to edit or answer.
Tab Complete seems to silently execute code
1 view (last 30 days)
Show older comments
I have a class which launches a process in Windows (using .NET) which brings up the command window. The class name is also the name of a package which is a few levels deep with various packages and classes. Occasionally when I tab complete, usually a level or two down in the package structure, I will see the command window launch briefly and then go away. This doesn't always happen and may or may not be related to whether or not an instance of the base class is in memory or not. Is Matlab executing my class to do tab complete?
I think I've seen this in 2011b. I haven't worked enough with newer versions to know whether or not it is present in 2012a & 2012b.
0 Comments
Answers (1)
Georges
on 7 Mar 2013
I can confirm this behavior (also in Matlab R2011b). For an object written completely in Matlab, when using several methods in a row, the constrictor is call when using tab completion.
Example:
myObj = myClass()
myObj.firstMethod().secondMeth
When I want to tab-complete secondMethod, the constructor is called several time, not just once ....
This is a rather unwanted behavior!
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!