>I rarely emply either FUNCTION and PROCEDURE keywords, especially if it's a UDF in an INDEX command.
I seldom use a UDF for an index, but if I did it, I would probably use the database stored procedures. I think that would make the index accesible, without additional commands - not sure though, whether this always works.
But yes, an alternative is to have a separate PRG.
>I'm afraid I'll never understand why people insist on arbitrarily grouping functions and procedures into "libraries".
In my opinion, it can help keep things organized. For instance, one entire library might contain standard functions which are usable in different systems; another library might contain functions for a specific system I am working on.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)