> I do know that the difference will not be noticeable by the user, but I think
> that returning complex objects from functions should be avoided.
In general, it's more important for the code to be clear than for the
code to be fast. This rule should only be lifted if profiling shows
that there is a performance problem.
> I also thought of another idea: creating a references menu, that after you
> select an item in this list, a sub-menu opens, letting you select from
> inserting a reference/page number/jump to the reference.
That's a nice idea. We are timing you to see a patch ;-)
Greets,
Asger