#5633 closed defect (fixed)
Default name for the first instance of a class
| Reported by: | Francesco Casella | Owned by: | Adeel Asghar |
|---|---|---|---|
| Priority: | high | Milestone: | 1.14.0 |
| Component: | OMEdit | Version: | |
| Keywords: | Cc: |
Description
The convention for the MSL has been to use names starting with capital letters for classes, and names starting with a small letter for component instances.
This allows to select the default name for the first instance of SomeClass as someClass, not someClass1, which seems more appropriate in the event (which is often the case) that there is only one instance. Seeing a system with components pump1, valve1 and pipe1 is odd, one would rather like to see pump, valve and pipe. This is what Dymola has been doing for a long time, once the convention was established.
I one wants to have multiple instances, he/she can add the 1 to the name, so that the next instance gets a 2.

Done in 2056452/OpenModelica.