Looking at the code examples from Gtk.jl I found this code example:

w = Gtk.@Window() |>
    (f = Gtk.@Box(:h) |>
        (b = Gtk.@Button("1")) |>
        (c = Gtk.@Button("2")) |>
        (f2 = Gtk.@Box(:v) |>
              Gtk.@Label("3") |>
              Gtk.@Label("4"))) |>
    showall


This is just a compact way to create a Gtk window and put some objects in 
it. But I had never seen that `|>` operator before, and I can't figure out 
what it's doing. Is this operator somehow unique to Gtk.jl ? It can see 
that they use it to nest widgets inside containers, but it's not clear to 
me how it does it.

Cheers,
Daniel.

Reply via email to