In Pike, it is possible to retrieve all members of an object by calling indices()
. Is it also possible to see all members of a class without instantiating it?
> class A {int foo; string bar;};
> A a = A();
> indices(a);
(1) Result: ({ /* 2 elements */
"foo",
"bar"
})
> indices(A);
(2) Result: ({ })