Subj : int8 for property enum? To : netscape.public.mozilla.jseng From : Brian Genisio Date : Mon Feb 02 2004 02:13 pm Hi all, Please tell me if I have a misunderstanding here... it seems I must. (using spidermonkey) When I create an object type in javascript, I create a handful of properties, and register them using the JSPropertySpec type. In this type, the unique ID is defined as int8, which can have a value of -127 to 127. So, this means that I have a limit of 256 properties for a given object. What if I want more? The reason this seems a bit restrictive, is because of delegation and the [] operator. For instance, if I have 3 classes, A, B and C, where C's prototype is B, and B's prototype is A. The IDs in these classes must all be unique... so now, between three objects, I can only have 256 properties. Now, let's assume that I want these objects to use the [] method, and they are to be positive. Now, since it hast to be negative, I have only 128 properties to share between 3 objects. Do you see where I am going? It seems that as my model gets more complex, I become more and more restricted to what I can use for property enumerations. Am I missing something? Brian .