Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Inferring class hierarchy from within static method
Replies: 4   Last Post: Oct 10, 2012 4:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Julian

Posts: 93
Registered: 12/6/04
Re: Inferring class hierarchy from within static method
Posted: Oct 10, 2012 4:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Steven -
> Run(TestCase); % Call the constructor with 0 inputs, pass the result
> into the Run method


Thanks for sharing this pattern. I think I was stuck on the "dot" syntax and this didn't cross my mind. Will take a look and see if this will work for our more involved operations.

> Instead of using one period as in the Static case you use two parentheses.
> Unless you're MATLAB golfing[*], I'm guessing this isn't going to be a big
> problem (especially since if you're running the test multiple times I think
> you're probably going to rerun it using the up arrow to recall the command.)

Although this could be the difference between a birdie and a bogey :) I must say that I would still prefer to an option that would allow a TestCase.Run type of syntax, as that just looks better and makes more sense to me, but you're right, its not a big problem.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.