# World age problem, when does a generated function get generated?

**URL:** <https://discourse.julialang.org/t/world-age-problem-when-does-a-generated-function-get-generated/49302>\
**Category:** General Usage\
**Created:** [October 30, 2020, 1:02pm UTC](https://discourse.julialang.org/t/world-age-problem-when-does-a-generated-function-get-generated/49302 "2020-10-30T13:02:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![louisponet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/louisponet/32/2070_2.png) [@louisponet](https://discourse.julialang.org/u/louisponet)\
**Post date:** [October 30, 2020, 1:02pm UTC](https://discourse.julialang.org/t/world-age-problem-when-does-a-generated-function-get-generated/49302/1 "2020-10-30T13:02:11Z")

</div>

I’m having a very confusing interaction between `GLAbstraction.jl` and `ColorTypes.jl`. I’ve read through pretty much all the world age threads and info I could find but I still don’t understand what is going wrong.

The structure of my problem is something like this:

```julia
module Glimpse
using ColorTypes
using GLAbstraction

function test()
    return GLAbstraction.FrameBuffer((1024, 1024), (RGBA{Float64}, GLAbstraction.Dept{Float32}), true)
end
end

```

Then if I run `using Glimpse; Glimpse.test()` I get a world age error complaining at line [dim = length(T)](https://github.com/JuliaGL/GLAbstraction.jl/blob/c8e6def22a85d23bf8c7a991e6d30f4a629aaae6/src/texture.jl#L58)  
that no suitable function `length(RGBA{Float32})` was found, that the one defined in ColorTypes is running in a too new world.

In a standard repl this works perfectly.  
What is going on here?
