Opened 5 years ago

Last modified 5 years ago

#5759 new defect

Support Modelica.Utilities.Strings.* functions directly

Reported by: Adrian Pop Owned by: somebody
Priority: high Milestone: 2.0.0
Component: Interactive Environment Version:
Keywords: Cc:

Description

Currently it doesn't work to call for example scanInteger in a script because we have -d=nogen activated and even so, generating a dll for this is just overkill. We already link with ModelicaExternalC so we could just support this via function evaluation and known external functions.

Even if you enable -d=gen on Windows it complains on missing omc_assert.

The only way to parse an integer now is to switch to -g=MetaModelica and do stringInt which is just totally annoying.

Change History (2)

comment:1 by Francesco Casella, 5 years ago

Milestone: Future2.0.0

comment:2 by Martin Sjölund, 5 years ago

Two ways of resolving it:

  • Hard-coded version as we had in the past
  • Some FFI library and see if the library is already loaded
Note: See TracTickets for help on using tickets.