Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Impure funtion Pack.SimpleBuffer.writeFile #31

Open
tbeu opened this issue Apr 4, 2016 · 2 comments
Open

Impure funtion Pack.SimpleBuffer.writeFile #31

tbeu opened this issue Apr 4, 2016 · 2 comments

Comments

@tbeu
Copy link
Contributor

tbeu commented Apr 4, 2016

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

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

@sjoelund
Copy link
Contributor

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
Copy link
Contributor Author

tbeu commented Dec 12, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants