Date/Time: Tue, 07 Jul 2020 22:52:28 +0000
Post From: Notice: Study Exceptions in New Versions and Code Efficiency
|User972768 - Posts: 159 | Ending Date: 2020-01-05 [Expired]|
While we're on the topic of Persistent variables. Just wanted to confirm that referring to persistent variable int #1 is specific to each copy of the study.
For example, following code
int& VariableName = sc.GetPersistentIntFast(1);
will return references to two different memory addresses in two different copies of the study even on the same chart. Is it correct?
And to expand this question. If I have multiple studies in my DLL referring to persistent int variable as in code above, they all should refer to different memory regions, right?
PS Please do not forget to add information about new "Fast" methods at https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetPersistentInt
Date Time Of Last Edit: 2020-05-13 23:41:16