LabVIEW Idea Exchange

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

Default value of "Restrict references of this class type to member VIs of this class" should be FALSE

Status: Declined

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

Please see, here, for more information.
4 Comments
Daklu
Active Participant
I suspect it was set this way to prevent overusing object references, but I can't argue with your reasoning.
AristosQueue (NI)
NI Employee (retired)

It was set this way because it was understood from use cases that the most common reason for wanting references included wanting a guaranteed initialization of the objects. That was such an overwhelming use case that we decided that enabling the setting should be the default.

 

For the record, the restriction does not prevent you from creating a reference to a single-element cluster containing the class. In fact, that mechanism gives you a reference that you can freely change the type of the underlying object, at the cost of not being able to upcast or downcast the reference wire itself. 

Message Edited by Aristos Queue on 08-19-2009 09:58 AM
yenknip
Active Participant

Is there / could there be a LabVIEW.ini switch to set the developer's preferred setting?

_____________________________
- Cheers, Ed
Darren
Proven Zealot
Status changed to: Declined

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