tbeu
tbeu
> There is no such thing as a reference (alias) to external object in Modelica. Do you think this should be improved in MLS?
Which is the other issue #54.
A constructed external object is a void\* pointer that only can passed to external functions. Why should it be not possible to pass it to records or connectors? I agree...
I see, finally. Constructing the ext. obj. in the record really is a bad idea.
How would you destrcut the ext. obj. that was constructed within the record? There is no such thing as a record dtor.
Same argument would hold for input devices. Of course it would break the backward compatibility.
Is it a current limitation of the SerialPackager we need to accept or is there a workaround? I consider this limitation as rather critical.
Since package branching is not allowed anywhere, I would prefer a splitter block. Do you know of any (tool-specific) way to prohibit branching, i.e. have max (exactely) 1 connection per...
https://trac.modelica.org/Modelica/ticket/1410 proposes to use cardinality only in asserts. Thus we could simply do that.
Adding an `assert(cardinality(..))` for each element with PackageIn and PackageOut connectors could help. What do you think?