Skip to content
Snippets Groups Projects
Commit 50893861 authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Unique names are really unique

parent 9e6f8d7a
No related branches found
No related tags found
No related merge requests found
......@@ -53,16 +53,12 @@ object Common {
override def hashCode: Int = globalId
override def toString: String = {
if (alwaysShowUniqueID) {
name + (if (id > 0) id else "")
} else {
name
}
if (alwaysShowUniqueID) uniqueName else name
}
def uniqueNameDelimited(delim: String) = name + delim + id
def uniqueNameDelimited(delim: String) = s"$name$delim$id"
def uniqueName: String = uniqueNameDelimited("")
def uniqueName: String = uniqueNameDelimited("$")
def toVariable: Variable = Variable(this)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment