# true global functions/tables/variables

**URL:** <https://community.zeek.org/t/true-global-functions-tables-variables/682>\
**Category:** Zeek\
**Created:** [February 3, 2005, 10:24am UTC](https://community.zeek.org/t/true-global-functions-tables-variables/682 "2005-02-03T10:24:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christoph\_Goeldi](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Christoph\_Goeldi](https://community.zeek.org/u/Christoph_Goeldi)\
**Post date:** [February 3, 2005, 10:24am UTC](https://community.zeek.org/t/true-global-functions-tables-variables/682/1 "2005-02-03T10:24:19Z")

</div>

hi everybody

today i noticed that i can't define functions, tables or variables and use it different policy files. it only worked, after i placed these things in the bro.init file.  
i think it is a drawback if it's impossible to implement a certain functionality with a bunch of files and use the same functions, tables etc. in them.  
if an algorithm is a bit complex you have no chance to implement it with a nice structure...

thanx for any help or comments  
christoph

---

<div class="post-metadata">

**Author:** ![Christian\_Kreibich3](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@Christian\_Kreibich3](https://community.zeek.org/u/Christian_Kreibich3)\
**Post date:** [February 3, 2005, 3:57pm UTC](https://community.zeek.org/t/true-global-functions-tables-variables/682/2 "2005-02-03T15:57:41Z")

</div>

Hi Christoph,

I'm far from a Bro language guru but I don't think that's true. Just as  
an example, function service\_name() is defined in conn.bro but used in  
conn.bro and login.bro. Are you @load'ing things correctly? I hope I'm  
not just missing your point ...

---

<div class="post-metadata">

**Author:** ![Christoph\_Goeldi](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Christoph\_Goeldi](https://community.zeek.org/u/Christoph_Goeldi)\
**Post date:** [February 3, 2005, 5:22pm UTC](https://community.zeek.org/t/true-global-functions-tables-variables/682/3 "2005-02-03T17:22:17Z")

</div>

Hi

sorry, your right. i messed up with the @load commands.  
i didn't realize that the order of loading files and defining  
functions is important.

thanx  
christoph

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:37pm UTC](https://community.zeek.org/t/true-global-functions-tables-variables/682/4 "2022-05-06T15:37:20Z")

</div>


