On 8/9/12 2:41 PM, Aryeh Gregor wrote:
> On Thu, Aug 9, 2012 at 3:38 PM, David Rajchenbach-Teller
> <[email protected]> wrote:
>> Perhaps, at some point, we will want to adapt xpidl to take advantage of
>> this.
> 
> XPIDL doesn't allow enums at all, does it?

Not yet, no. But this doesn't prevent us from defining sequences of
integers to be used as enums all over the place.

>> Also, with this new feature, should we consider some static analysis to
>> try and root out untyped enumerations?
> 
> I'm not sure what you mean.
> 

I mean that, in a number of places in our codebase, we use untyped
enumerations (which is only fair, given that we had no compiler support
for typed enumeration). If we decide to, we could probably write some
static analysis tool to convert them semi-automatically to typed
enumerations, for better safety.

Cheers,
 David

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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to