# Why does string(enum member value) not prepend the module name?

**URL:** <https://discourse.julialang.org/t/why-does-string-enum-member-value-not-prepend-the-module-name/15820>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 3, 2018, 7:42am UTC](https://discourse.julialang.org/t/why-does-string-enum-member-value-not-prepend-the-module-name/15820 "2018-10-03T07:42:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Post date:** [October 3, 2018, 7:42am UTC](https://discourse.julialang.org/t/why-does-string-enum-member-value-not-prepend-the-module-name/15820/1 "2018-10-03T07:42:34Z")

</div>

```julia
julia> module Mod                                                                              
       struct Struct end                                                                       
       @enum Enum A B
       func() = 1                                                                         
       end                                                                                     
Main.Mod

julia> string(Mod.Struct)
"Main.Mod.Struct"

julia> string(Mod.Enum)
"Main.Mod.Enum"

julia> string(Mod.func)
"Main.Mod.func"

julia> string(Mod.A)
"A"

```

I would have expected `"Main.Mod.A"` in the last return. Why just `"A"`?

---

<div class="post-metadata">

**Author:** ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Post date:** [September 2, 2019, 12:29pm UTC](https://discourse.julialang.org/t/why-does-string-enum-member-value-not-prepend-the-module-name/15820/2 "2019-09-02T12:29:38Z")

</div>

This has (unexpectedly) changed a bit in julia 1.2.0

```julia
julia> module Mod                                                                              
       struct Struct end                                                                       
       @enum Enu A B
       func() = 1                                                                         
       end                                                                                     
Main.Mod

julia> string(Mod.Struct)
"Main.Mod.Struct"

julia> string(Mod.Enu)
"Main.Mod.Enu"

julia> string(Mod.func)
"func"

julia> string(Mod.A)
"A"

```

I still don’t get the logic…
