Subj : for/in loops To : netscape.public.mozilla.jseng From : Alex Fritze Date : Wed May 12 2004 01:00 am Hi, A couple of questions about for/in: 1. Getters & setters defined with __defineGetter__/__defineSetter__ are currently not enumerated in for/in loops. Is there a reason for that? 2. The code function f() { var x,y,z; } f.foo = "bar"; for(var p in f) dump(p); yields xyzfoo Why are f's private variables enumerated? Alex .