I decided to go with Ivan's suggestion. I like that the only way you can get a HeapStatistics object with non-zero fields is if V8 fills out the data.
On Tue, Oct 20, 2009 at 6:15 AM, Kevin Millikin <[email protected]> wrote: > I have the other opinion, but it's not a very strong one. I guess I don't > expect us to ever change the implementation. > The only reason to use a struct to encapsulate the output parameter here is > so that the API signature doesn't have to change if you add a field. > Existing client code doesn't change, they just get a bigger package of > results. > It's not the V8 API's responsibility to enforce any particular style of > encapsulation on client code. --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
