We use the enum in a switch in a number of places, which cannot be reconciled
with abstraction into a class in C++. So that would be too much hassle.

Generally, I think enums are the right abstraction here. It's just that the
language treats them as the unwanted step child that makes them kind of ugly.


https://chromiumcodereview.appspot.com/10897010/diff/1/src/v8globals.h
File src/v8globals.h (right):

https://chromiumcodereview.appspot.com/10897010/diff/1/src/v8globals.h#newcode482
src/v8globals.h:482: enum VariableMode {
On 2012/08/29 06:24:24, Sven Panne wrote:
Add a warning comment here that the order of the enums matters.

Done.

https://chromiumcodereview.appspot.com/10897010/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to