ModelicaStandardLibrary icon indicating copy to clipboard operation
ModelicaStandardLibrary copied to clipboard

More pure functions that contains calls to impure functions

Open MarkusOlssonModelon opened this issue 2 years ago • 0 comments

Here are some more functions that I think should be declared as impure:

  • Modelica.Math.FastFourierTransform.realFFTwriteToFile - contains calls to several impure functions, e.g. Modelica.Utilities.Files.removeFile.
  • Modelica.Math.Random.Utilities.initializeImpureRandom - contains call to impure function setInternalState.
  • Modelica.Utilities.Examples.readRealParameter - contains call to impure function Modelica.Utilities.Streams.readLine.

Unlike in #3855 it looks like these functions are only called in places where calling impure functions are allowed.

MarkusOlssonModelon avatar Aug 09 '21 09:08 MarkusOlssonModelon