W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

[webidl] definition of const string literal

From: Max Froumentin <maxfro@opera.com>
Date: Mon, 27 Apr 2009 15:56:42 +0200
To: public-webapps <public-webapps@w3.org>
Message-ID: <m24owaci91.fsf@pc214.sm.oslo.opera.com>
Hi, 

The grammar in http://dev.w3.org/2006/webapi/WebIDL/ prevents declarations such as:

const DOMString foo = "bar";

because the "ConstExp" rule [1] only allows a number, or "TRUE" or "FALSE".
Is it an omission?

Max.

[1] http://dev.w3.org/2006/webapi/WebIDL/#prod-ConstExpr 
Received on Monday, 27 April 2009 13:57:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT