Functions and anonymous types

From PostgreSQL wiki

It is possible to define a function that returns RECORD, consisting of multiple columns, which forms an Anonymous Type 1

Calling the function with parameters, and retrieving the results as named columns, needs particular syntax...
Here is a working example (pg9) and the work-arounds. (note - the PostGIS geometry is ancillary to the example..)