Limitations of the S+/S# mechanism prevent you from doing this easily as S+ automatically instantiates the S# class using the default constructor and you don¡¯t have control over when.?
Just use a collection type like List rather than Array and it grows as necessary to match whatever data you feed it from S+.?
There¡¯s no need to use an Array in S# just to match the Array in S+.?
On Oct 28, 2020, at 9:12 AM, aecohn0210@... wrote:
?
[Edited Message Follows]
I'm looking to create an array in Simpl# whose size is dependent on a constant in Simpl+.
With Simpl+, I can just have the constant be 10, for example, and then point inputs/outputs/arrays to that constant size, and recompile whenever I'd like to expand or contract the module.
But attempting the same with Simpl#, I get errors. I tried to pass the value into the new array in the constructor, via function Main, but it didn't take.