src/Pure/System/options.scala
changeset 77621 25993910f212
parent 77617 58b7f3fb73cb
child 77622 f458547b4f0f
equal deleted inserted replaced
77620:58576816d304 77621:25993910f212
   325   val string: Options.Access[String] =
   325   val string: Options.Access[String] =
   326     new Options.Access[String](this) {
   326     new Options.Access[String](this) {
   327       def apply(name: String): String = get(name, Options.String, Some(_))
   327       def apply(name: String): String = get(name, Options.String, Some(_))
   328       def update(name: String, x: String): Options = put(name, Options.String, x)
   328       def update(name: String, x: String): Options = put(name, Options.String, x)
   329     }
   329     }
   330 
       
   331   def proper_string(name: String): Option[String] =
       
   332     Library.proper_string(string(name))
       
   333 
   330 
   334   def seconds(name: String): Time = Time.seconds(real(name))
   331   def seconds(name: String): Time = Time.seconds(real(name))
   335 
   332 
   336 
   333 
   337   /* external updates */
   334   /* external updates */
   481     new Options.Access_Variable[Double](this, _.real)
   478     new Options.Access_Variable[Double](this, _.real)
   482 
   479 
   483   val string: Options.Access_Variable[String] =
   480   val string: Options.Access_Variable[String] =
   484     new Options.Access_Variable[String](this, _.string)
   481     new Options.Access_Variable[String](this, _.string)
   485 
   482 
   486   def proper_string(name: String): Option[String] =
       
   487     Library.proper_string(string(name))
       
   488 
       
   489   def seconds(name: String): Time = value.seconds(name)
   483   def seconds(name: String): Time = value.seconds(name)
   490 }
   484 }