modelica-3rdparty / msgpack-modelica

A MessagePack implementation as a Modelica package
BSD 2-Clause "Simplified" License
6 stars 4 forks source link

Impure funtion Pack.SimpleBuffer.writeFile #31

Open tbeu opened 8 years ago

tbeu commented 8 years ago

Should function Pack.SimpleBuffer.writeFile be marked as impure (using the new __ModelicaAssociation_Impure annotation)?

Not sure about Pack.SimpleBuffer.position though ...

sjoelund commented 7 years ago

Possibly every single function should be marked impure (with the keyword) since the internal state is modified even in the packer. It depends if you consider all external object functions impure or not.

tbeu commented 7 years ago

Let's see what Design92 says about impure function on external objects.