summaryrefslogblamecommitdiff
path: root/src/library/scala/Dynamic.scala
blob: dcf75997423c6c42f317607903df505aea35c344 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                                          

             


                                                                          
                                                   
  

                                                                          
   
             
 
 
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2010-2011, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

package scala

/** A marker trait that enables dynamic invocations. Instances `x` of this
 *  trait allow calls `x.meth(args)` for arbitrary method names `meth` and
 *  argument lists `args`.  If a call is not natively supported by `x`, it
 *  is rewritten to `x.applyDynamic("meth")(args)`.
 *
 *  As of scala 2.9, `scalac` must receive the `-Xexperimental` option for
 *  `Dynamic` to receive this treatment.
 */
trait Dynamic