Opened 14 years ago

Last modified 13 years ago

#1408 closed defect (fixed)

min (probably also max) don't work for all scalars

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Version:
Keywords: Cc: Martin Sjölund,

Description

min(true, false)
min("abc", "def")
min(Enum.A, Enum.B)
min({true,false}) // Also reduction expressions...

Also does not work for records (how do these work anyway? using the overloaded operator functions?)

Change History (3)

comment:1 by Martin Sjölund, 14 years ago

Works for bool now

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

Waiting for https://trac.modelica.org/Modelica/ticket/499 to be put into the specification

comment:3 by Martin Sjölund, 13 years ago

Removed support for min(string) and max(string) since the specification was updated

Note: See TracTickets for help on using tickets.