# Reference to a global function with the name same as class?

**URL:** <https://forum.kirupa.com/t/reference-to-a-global-function-with-the-name-same-as-class/318969>\
**Category:** flash\
**Created:** [February 4, 2011, 6:31pm UTC](https://forum.kirupa.com/t/reference-to-a-global-function-with-the-name-same-as-class/318969 "2011-02-04T18:31:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wvxvw](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wvxvw](https://forum.kirupa.com/u/wvxvw)\
**Post date:** [February 4, 2011, 6:31pm UTC](https://forum.kirupa.com/t/reference-to-a-global-function-with-the-name-same-as-class/318969/1 "2011-02-04T18:31:10Z")

</div>

Hi. How would one get a reference of String global function (not class). According to language reference this function does exist (and I’m ready to believe it does), but, say and you have a:

```auto
function foo(bar:Function):void { ... }

```

How then would you pass that String to it?
