Subj : Re: Mulit dimensional arrays To : Jochen Stier From : Brendan Eich Date : Mon Mar 01 2004 09:33 pm Jochen Stier wrote: >Hi, > >I am trying to make a 3D transformation matrix SbMatrix available in >javascript, >so that I can use it like > >var lMatrix = new SbMatrix(); > >lMatrix[0][1] = 12; >lMatrix[1][1] = 12; >. > >Is there any way to have use JS_GetProperty for that ? > What do you mean by "that", exactly? lMatrix[0] is a "get", it will call getProperty for the JSClass of lMatrix, passing an id encoding the value 0. (I'm assuming you don't define a per-property getter.) lMatrix[0][1] = 12 is on the other hand a "set". You have studied JSClass code and docs, right? > Any help would be appreciated > > See http://www.mozilla.org/js/spidermonkey/ if you haven't already. /be .