Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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.

Change History (2)

comment:1 by Adeel Asghar, 5 years ago

Resolution: fixed
Status: newclosed

comment:2 by Francesco Casella, 5 years ago

Great, thanks!

Note: See TracTickets for help on using tickets.