#3647 closed defect (fixed)
boolString doesn't work as function argument
Reported by: | Willi Braun | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | normal | Milestone: | 1.9.4 |
Component: | MetaModelica | Version: | |
Keywords: | Cc: |
Description
For example:
stringlst = List.map(blst, boolString);
produces an error like that:
error: use of undeclared identifier 'boxvar_boolString'; did you mean 'boxptr_realString'?
Change History (8)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
hm, what's a about something like that:
print(stringDelimitList(list(String(b) for b in blst), " "));
result:
warning: implicit declaration of function 'modelica_metatype_to_modelica_string' is invalid in C99 [-Wimplicit-function-declaration warning: incompatible integer to pointer conversion assigning to 'modelica_string' (aka 'void *') from 'int' [-Wint-conversion]
comment:3 by , 9 years ago
The problem is the built-in String()
in Static.mo won't call the correct type-conversion functions. I guess boolString does... It's an easy fix once I have time.
comment:4 by , 9 years ago
ah, okay. However, but that works :)
print(stringDelimitList(list(String(b) for b in blst), " "));
comment:5 by , 9 years ago
Milestone: | Future → 1.9.4 |
---|---|
Status: | new → accepted |
This is getting fixed in https://github.com/OpenModelica/OMCompiler/pull/405
comment:6 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
Needs to be added to SimulationRuntime, then... But you don't need it for now: