Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202541

Re: Object Orientated By Ref Pass Object Through

$
0
0

Richard_Ha wrote:

This would save processors time (not building an array to pass out). Am I correct in this assumption? 


No.  Your upper code in English is "Write false on each element of the array, then call Halt on each element".   Your lower one is "Make a copy of the array and Write false on each element, then make a another copy of the original array and call Halt on each element".  Because your making copies of DVR references, the two codes will act the same.   But the upper code is the neater one.  And the one that might possibly have a slight performance advantage (though I suspect the compiler may avoid actually copying the references).

 

 


Viewing all articles
Browse latest Browse all 202541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>