OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Announcement: Release of Scala v1.1.0-b1

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: Announcement: Release of Scala v1.1.0-b1
  • From: Burak Emir <Burak.Emir@epfl.ch>
  • Date: Wed, 18 Feb 2004 10:24:54 +0100
  • User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

Hello,

Version 1.1.0-b1 of Scala was released yesterday. Scala is a programming 
language somewhere between Java and Standard ML that is compiled to Java 
bytecode. Readers of this list might be interested in an undocumented 
XML markup option of the compiler (-Xmarkup). With this, it is possible 
to write:

class MyClass {
   /** a function creating a html document containing a message
    */
   def createBody( msg:String ) = {
	<html>
            <head>
              <title>{ msg }</title>
            </head>
            <body background="#fff">
               <h1>{ msg }</h1>
               <p> created automatically on { getDate() }</p>
	   </body>
         </html>;
   }
  // last expression of a block is the result
  // C,Java-style comments are not allowed in literals.
}

The other changes compared to the previously available version are:

- New syntax to conveniently define several variables, values, methods
or classes which have the same initialising expression.

- New support for enumerations in the standard library.

- Change in the license to remove the advertising clause.

- Support for value classes in the scalap tool.

- Several bugs fixed in the compiler, standard library and installers.

The Scala team.





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS