What is foo_var_num supposed to be in your second example?
That's the exercise. :-)
Hint: It's a run-time constant similar to get_bar_fun_num.
Also, the ID_STATIC flag was close to what I wanted. When using it, the inner class is invisible to index() when applied to an object but not when doing something like index(Foo.Bar).
?
I would like to get the following:
indices(Foo.Bar);
({ methods ... })
indices(Foo.Bar());
({ Gazonk methods ... })
Ok, so Foo.Bar is an object with an lfun::`()() that returns a Gazonk object?
Ie, the important thing is that when Gazonk is instantiated, there is a surrounding instance which has initialized some things.
I don't see what your example has to do with the above statement.
/ Henrik Grubbström (Lysator)
Previous text:
2004-08-13 13:20: Subject: CMOD questions
What is foo_var_num supposed to be in your second example?
Also, the ID_STATIC flag was close to what I wanted. When using it, the inner class is invisible to index() when applied to an object but not when doing something like index(Foo.Bar).
I would like to get the following:
indices(Foo.Bar);
({ methods ... })
indices(Foo.Bar());
({ Gazonk methods ... })
Ie, the important thing is that when Gazonk is instantiated, there is a surrounding instance which has initialized some things.
/ Marcus Agehall (PacketFront)