Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Example to show that Modelica language is a strongly typed language

Example to show that Modelica language is a strongly typed language

As we know that OpenModelica is an open-source implementation of the Modelica language. Thus, it would adhere to all the features of Modelica. Modelica language is strongly typed. This means that the compiler is more likely to generate an error if, for example, the passed type to an argument does not match the expected type. Could anyone please share an example (a sample model) in OMEdit which verifies this claim? 

Re: Example to show that Modelica language is a strongly typed language

model M Real r = "s"; end M;

Re: Example to show that Modelica language is a strongly typed language

Thanks for your response.

There are 0 guests and 0 other users also viewing this topic
You are here: