blob: 832b9721edcee3d4695495e5c6b3b232b8e56c08 (
plain) (
tree)
|
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2003, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
** $Id$
\* */
package scala;
/** Instances of <code>Symbol</code> can be created easily with
* Scala's built-in quote mechanism. For instance, the Scala term
* <code>'mysym</code> will invoke the constructor of the
* <code>Symbol</code> class in the following way:
* <code>new Symbol("mysym")</code>. .
*
* @author Martin Odersky
* @version 1.7, 08/12/2003
*/
final case class Symbol(name: String) {
/** Converts this symbol to a string.
*/
override def toString(): String = {
"'" + name
}
}
|