Can I do this? It seems not to work.

function getLoginURL as c (access_type as c, approval_prompt as c, redirect as c = getRedirectUri(), state as c = "")

getRedirectUri is a function that...get's the redirect uri, but I want it to be overrideable.

That would be the cleanest way, but I could probably do:

function getLoginURL as c (access_type as c, approval_prompt as c, redirect as c = "", state as c = "")
if isnull(redirect) then
redirect = getRedirectUri()
end if