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: Unexpected package behavior
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jim Hokanson

Posts: 14
Registered: 1/27/11
Unexpected package behavior
Posted: Nov 6, 2012 9:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have the following setup:

+my_pack/@my_class
+my_pack/+my_class/@my_sub_class

Is the following supposed to work. This seems like it should be an error and yet I am getting the sub class constructor call.

m = my_pack.my_class;
m2 = m.my_sub_class;

Since I am working with an instance of the class it seems to me that only properties and or methods of that class should be accessible. Is this is a design decision or a bug?

Thanks,
Jim



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.