Opened 15 years ago
Last modified 14 years ago
#1134 closed discussion (fixed)
Implement enumerations. (From MathCore)
Reported by: | Jan Brugård | Owned by: | Jan Brugård |
---|---|---|---|
Priority: | blocker | Milestone: | Red October |
Component: | Version: | ||
Keywords: | Cc: | Jan Brugård, |
Description
Implement enumerations.
Some things already work, but others do not.
This does not work:
- Integer(e) - for enumeration e (gives Error: No matching function found for Integer(m) of type function(x:enumeration(A, B, C)) => Integer, candidates are function(x:enumeration()) => Integer
Error: Wrong type or wrong number of arguments to Integer(m)
- String(e) - for enumeration e (translates to String(m,0,true,6) today which is not correct)
- Array over enumerations (#127)
Change History (3)
comment:1 by , 15 years ago
comment:3 by , 14 years ago
I have fixed the String function so that it also is constant evaluated for enumerations now. With this fix I believe that all reported issues with enumerations are now fixed.
Note:
See TracTickets
for help on using tickets.
http://intranet/trac/mathmodelica/ticket/2542