Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants