Re: New MFBT features: enum underlying type and enum classes

2012-08-09 Thread Aryeh Gregor
On Thursday, August 9, 2012 3:05:56 PM UTC+3, Ted Mielczarek wrote:
 Did you mean VC++ 2010 or 2012? There's no version called 2011. (VC
 2010 is VC 10.0, and VC 2012 is VC 11.0, confusingly.)

I meant Visual Studio 11, based on this: 
http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx.  
Specifically, it's implemented as #if _MSC_VER = 1700.
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: New MFBT features: enum underlying type and enum classes

2012-08-09 Thread David Rajchenbach-Teller
On 8/9/12 11:29 AM, Aryeh Gregor wrote:
 The other is to define enum classes, a.k.a. strongly-typed or scoped 
 enumerations.  This is done as follows:
[...]

That sounds great!

Perhaps, at some point, we will want to adapt xpidl to take advantage of
this.

Also, with this new feature, should we consider some static analysis to
try and root out untyped enumerations?

Cheers,
 David

-- 
David Rajchenbach-Teller, PhD
 Performance Team, Mozilla



signature.asc
Description: OpenPGP digital signature
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform