Opened 4 years ago

Last modified 4 years ago

#5759 new defect

Support Modelica.Utilities.Strings.* functions directly

Reported by: adrpo 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 Changed 4 years ago by casella

  • Milestone changed from Future to 2.0.0

comment:2 Changed 4 years ago by sjoelund.se

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.