# Unexpected behavior of global variables depending on function read/write behavior

**URL:** <https://discourse.julialang.org/t/unexpected-behavior-of-global-variables-depending-on-function-read-write-behavior/122624>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [November 14, 2024, 10:26am UTC](https://discourse.julialang.org/t/unexpected-behavior-of-global-variables-depending-on-function-read-write-behavior/122624 "2024-11-14T10:26:03Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [November 16, 2024, 4:45pm UTC](https://discourse.julialang.org/t/unexpected-behavior-of-global-variables-depending-on-function-read-write-behavior/122624/14 "2024-11-16T16:45:08Z")

</div>

> [@Jeff\_Emanuel](#):
>
> Of course. I just wanted to make it clear “For anyone reading this in future”.

I don’t think this was meant as a quote of @world-peace from another thread at all. This is a pretty standard expression that lots of people use on internet forums.

> [@world-peace](#):
>
> For context, I commented something elsewhere a short time ago where I clarified something and started off my post with
> 
> > For anyone reading this in future
> 
> Hence why he’s quoted that.

If @world-peace has the [same thread](https://discourse.julialang.org/t/asides-on-the-state-of-julia-for-scientific-machine-learning/122256/4) in mind as I do, then their wording was actually

> For the benefit of anyone reading this

which is not the same sentence that @Jeff_Emanuel used.

> [@world-peace](#):
>
> Seems pretty obvious that you were intending to mock me with your previous comment. Not sure how else someone would be expected to interpret that.

On this Discourse, please assume good intentions from the people you interact with, unless they have explicitly proved you wrong. I can’t recall observing mockery on this site, and I have no doubt @Jeff_Emanuel was genuinely trying to help.

---

_[View the full topic](https://discourse.julialang.org/t/unexpected-behavior-of-global-variables-depending-on-function-read-write-behavior/122624)._
