Extern, how to import a function and rename it ?

BlitzMax Forums/BlitzMax Programming/Extern, how to import a function and rename it ?

With userlibs you could do:
DesiredName():"realname"

I have noticed in various mods that in bmax you can do:
function Desiredname()="realname"

...but I can't get it to work. Help anyone ?