LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
CaseyLamers1

multiple inheritance

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

I want to suggest implementing multiple inheritance.

 

I find that I regularly want to use building blocks in my applications.  

 

An example from my project:  I need a serial device class and an analog device class.  I have a power supply class and a flow controller class.  Now if I have a "serial flow controller" or a "analog flow controller" I could have a Flow Controller base class and use serial or analog children.  Or I could say I have a Serial base class and Power Supply and Flow Controller children.  Either way I end up duplicating one set of code, specifically any configuration type settings via data accessors.

 

I believe multiple inheritance would fix this.

Casey Lamers


Phoenix, LLC


casey.lamers@phoenixwi.com


CLA, LabVIEW Champion


Check Out the Software Engineering Processes, Architecture, and Design track at NIWeek. 2018 I guarantee you will learn things you can use daily! I will be presenting!

4 Comments
tst
Knight of NI Knight of NI
Knight of NI

This is what NI has to say about it - http://www.ni.com/white-paper/3574/en#toc4

 

What's your opinion after reading that?


___________________
Try to take over the world!
drjdpowell
Trusted Enthusiast

Reminds me of this idea for Traits as a better alternative to things like multiple inheritance.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

_Y_
Active Participant
Active Participant

The original post is old but still Google-searchable. So, this is solution for

multiple inheritance that works with GOOP4 classes: https://azinterface.net/ 

 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP