Opened 10 years ago
Last modified 9 years ago
#2957 new enhancement
MetaModelica reflection API
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | normal | Milestone: | Future |
Component: | MetaModelica | Version: | trunk |
Keywords: | Cc: | Adrian Pop, Per Östlund, peter.fritzson@… |
Description
It would be nice to introduce a reflection API for MetaModelica (get ctor index, get record name, get field names, number of slots, index slot number). This is sometimes useful in order to debug functions where anyString provides too much information. Something like:
Error.addInternalError(functionName + " failed: missing case for record " + MetaModelica.Reflection.recordName(val), sourceInfo())
Note:
See TracTickets
for help on using tickets.