Question: Invoking procedures assigned to symbols by indexed names

Sorry for may be stupid question, but please see the following example:

a := proc() A end:
a();
                               A
a[b]();
                               A
Why a() is invoked on the last line?

Is it possible to determine (inside a() definition) how a() was invoked?

Thank you for your answers.

Please Wait...