crelf Posted June 7, 2008 Report Posted June 7, 2008 Wow - that's a mouthful! I'm just thinking out loud here: imagine I have a polymorphic VI (let's call it the "parent") which has some components (let's call them the "children") and I create a lvlib that contains both the parent and all it's children. Say I then set the children to private in the lvlib (you can probably see where I'm going here), but I leave the parent as public. Now I can't use the parent in a VI outside of the lvlib, because all it really is is a placeholder for one of it's children (which are private). Would it make sense to have private children of a public parent inheret the public attribute as a special case for polymorphic VIs only? Quote
jgcode Posted June 7, 2008 Report Posted June 7, 2008 Hi crelf I came across the same thing when I wanted to design polymorhpic "tool" VIs and distribrute them in .lvlib but keep the internals private as the point was to encapsulate using polymorphism. As it kept breaking my code, which I thought was unintuitive, I haven't gone back for a second try. Maybe there is a reason for it? But if anyone knows a work around - I am keen to know! Especially now NI have starred using lvlib, I bet we see them around more and more in the future. The ability you described would sure be handy for source distribution. Quote
Aristos Queue Posted June 7, 2008 Report Posted June 7, 2008 Yes, it would make a lot of sense to allow this for polymorphic VIs. Unfortunately, we didn't have the idea until late in the game and the architecture we use for testing scope has proven inflexible for making this work. It's a low priority desirable behavior. Quote
crelf Posted June 7, 2008 Author Report Posted June 7, 2008 QUOTE (jgcode @ Jun 5 2008, 07:59 PM) Especially now NI have starred using lvlib, I bet we see them around more and more in the future. I sure hope so! QUOTE (Aristos Queue @ Jun 5 2008, 10:21 PM) Yes, it would make a lot of sense to allow this for polymorphic VIs. Unfortunately, we didn't have the idea until late in the game and the architecture we use for testing scope has proven inflexible for making this work. It's a low priority desirable behavior. Thanks for the info Stephen - I figured as much. Quote
Ton Plomp Posted June 7, 2008 Report Posted June 7, 2008 QUOTE (crelf @ Jun 6 2008, 12:57 AM) Wow - that's a mouthful! Would it make sense to have private children of a public parent inheret the public attribute as a special case for polymorphic VIs only? Good description, but I don't think it is possible. QUOTE (Aristos Queue @ Jun 6 2008, 04:21 AM) Yes, it would make a lot of sense to allow this for polymorphic VIs. Unfortunately, we didn't have the idea until late in the game and the architecture we use for testing scope has proven inflexible for making this work. It's a low priority desirable behavior. Let me bump this. Together with the same behaviour for typedefs. Ton Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.